update app-odoo , app base

This commit is contained in:
ivan deng
2019-10-28 04:38:00 +08:00
parent 54a4d59a6a
commit 27e1306476
9 changed files with 62 additions and 161 deletions

View File

@@ -23,6 +23,14 @@ def pre_init_hook(cr):
# cr.execute("")
def post_init_hook(cr, registry):
try:
#
sql = "UPDATE res_partner SET customer = TRUE WHERE customer_rank >= 1;"
cr.execute(sql)
sql = "UPDATE res_partner SET supplier = TRUE WHERE supplier_rank >= 1"
cr.execute(sql)
except Exception as e:
pass
pass
# cr.execute("")