diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index a65295a7..98630a68 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data,Development Enhance', - 'version': '24.07.12', + 'version': '24.08.02', 'author': 'odooai.cn', 'category': 'Extra Tools', 'website': 'https://www.odooai.cn', diff --git a/app_odoo_customize/models/ir_module_module.py b/app_odoo_customize/models/ir_module_module.py index 4f5176fe..d351c9b6 100644 --- a/app_odoo_customize/models/ir_module_module.py +++ b/app_odoo_customize/models/ir_module_module.py @@ -72,12 +72,13 @@ class IrModule(models.Model): # 处理可更新字段, 不要compute,会出错 for mod_name in modules.get_modules(): mod = known_mods_names.get(mod_name) - installed_version = self.get_module_info(mod.name).get('version', default_version) - if installed_version and mod.latest_version and operator.gt(installed_version, mod.latest_version): - local_updatable = True - else: - local_updatable = False - if mod.local_updatable != local_updatable: - mod.write({'local_updatable': local_updatable}) + if mod: + installed_version = self.get_module_info(mod.name).get('version', default_version) + if installed_version and mod.latest_version and operator.gt(installed_version, mod.latest_version): + local_updatable = True + else: + local_updatable = False + if mod.local_updatable != local_updatable: + mod.write({'local_updatable': local_updatable}) return res