mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
udpate stock pro
This commit is contained in:
@@ -117,8 +117,12 @@ class ResConfigSettings(models.TransientModel):
|
||||
def remove_app_data(self, o, s=[]):
|
||||
for line in o:
|
||||
# 检查是否存在
|
||||
try:
|
||||
if not self.env['ir.model']._get(line):
|
||||
continue
|
||||
except Exception as e:
|
||||
_logger.warning('remove data error get ir.model: %s,%s', line, e)
|
||||
continue
|
||||
obj_name = line
|
||||
obj = self.pool.get(obj_name)
|
||||
if not obj:
|
||||
|
||||
Reference in New Issue
Block a user