mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update odoo customize
This commit is contained in:
@@ -16,8 +16,12 @@
|
||||
# description:
|
||||
|
||||
def pre_init_hook(cr):
|
||||
pass
|
||||
# cr.execute("")
|
||||
try:
|
||||
# 更新企业版指向
|
||||
sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % ('https://www.sunpop.cn', 'OEEL%')
|
||||
cr.execute(sql)
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user