update odoo customize

This commit is contained in:
ivan deng
2019-04-17 14:03:06 +08:00
parent 31e451563f
commit 89fd76e6a3
11 changed files with 145 additions and 17 deletions

View File

@@ -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