From 7e81ac7520517cf7a9a614d6fafb1dfdf2f94072 Mon Sep 17 00:00:00 2001 From: Ivan Office Date: Fri, 20 Dec 2024 22:16:18 +0800 Subject: [PATCH] =?UTF-8?q?opt=20app=20=E7=B1=BB=E5=9E=8B=E7=AE=97?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_odoo_customize/models/ir_module_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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