mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
release pdm v3
This commit is contained in:
@@ -46,3 +46,9 @@ def post_init_hook(cr, registry):
|
|||||||
ids.write({'tz': "Asia/Shanghai"})
|
ids.write({'tz': "Asia/Shanghai"})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise Warning(e)
|
raise Warning(e)
|
||||||
|
|
||||||
|
def uninstall_hook(cr, registry):
|
||||||
|
"""
|
||||||
|
数据初始化,卸载时执行
|
||||||
|
"""
|
||||||
|
pass
|
||||||
@@ -31,6 +31,12 @@ def post_init_hook(cr, registry):
|
|||||||
pass
|
pass
|
||||||
# cr.execute("")
|
# cr.execute("")
|
||||||
|
|
||||||
|
def uninstall_hook(cr, registry):
|
||||||
|
"""
|
||||||
|
数据初始化,卸载时执行
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
def check_module_installed(cr, modules):
|
def check_module_installed(cr, modules):
|
||||||
# modules 输入参数是个 list,如 ['base', 'sale']
|
# modules 输入参数是个 list,如 ['base', 'sale']
|
||||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||||
|
|||||||
Reference in New Issue
Block a user