mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix #IB181K app_odoo_customize对18版本增加模块类型,Odoo中文应用。了解下我们需要优先升级的模块18
This commit is contained in:
@@ -96,3 +96,10 @@ class IrModuleModule(models.Model):
|
||||
if author in ['odooai.cn', 'sunpop.cn', 'odooapp.cn']:
|
||||
self.module_type = 'odooapp.cn'
|
||||
return res
|
||||
|
||||
def web_read(self, specification):
|
||||
fields = list(specification.keys())
|
||||
module_type = self.env.context.get('module_type', 'official')
|
||||
if module_type == 'odooapp.cn':
|
||||
self.env.context = {**self.env.context, "module_type": 'official'}
|
||||
return super().web_read(specification)
|
||||
|
||||
Reference in New Issue
Block a user