mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
优化数据清理
This commit is contained in:
@@ -304,6 +304,9 @@ class AppThemeConfigSettings(models.TransientModel):
|
||||
['procurement.group', ],
|
||||
]
|
||||
try:
|
||||
# 为优化,增加处理
|
||||
self._cr.execute("update stock_move set split_from=NULL;")
|
||||
self._cr.execute("update stock_move set origin_returned_move_id=NULL;")
|
||||
for line in to_removes :
|
||||
obj_name = line[0]
|
||||
obj = self.pool.get(obj_name)
|
||||
|
||||
Reference in New Issue
Block a user