mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt app 类型算法
This commit is contained in:
@@ -92,8 +92,8 @@ class IrModuleModule(models.Model):
|
|||||||
|
|
||||||
def _update_from_terp(self, terp):
|
def _update_from_terp(self, terp):
|
||||||
res = super()._update_from_terp(terp)
|
res = super()._update_from_terp(terp)
|
||||||
author = terp.get('author')
|
author = terp.get('author').lower()
|
||||||
if author in ['odooai.cn', 'sunpop.cn', 'odooapp.cn']:
|
if author in ['odooai.cn', 'sunpop.cn', 'odooapp.cn', 'www.odooai.cn', 'www.sunpop.cn', 'www.odooapp.cn']:
|
||||||
self.module_type = 'odooapp.cn'
|
self.module_type = 'odooapp.cn'
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user