diff --git a/app_odoo_customize/models/ir_module_module.py b/app_odoo_customize/models/ir_module_module.py index a41ba3e0..77748ba4 100644 --- a/app_odoo_customize/models/ir_module_module.py +++ b/app_odoo_customize/models/ir_module_module.py @@ -92,8 +92,8 @@ class IrModuleModule(models.Model): def _update_from_terp(self, terp): res = super()._update_from_terp(terp) - author = terp.get('author') - if author in ['odooai.cn', 'sunpop.cn', 'odooapp.cn']: + author = terp.get('author').lower() + if author in ['odooai.cn', 'sunpop.cn', 'odooapp.cn', 'www.odooai.cn', 'www.sunpop.cn', 'www.odooapp.cn']: self.module_type = 'odooapp.cn' return res