mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add cn account
This commit is contained in:
@@ -22,9 +22,6 @@ def pre_init_hook(cr):
|
||||
数据初始化,只在安装时执行,更新时不执行
|
||||
"""
|
||||
try:
|
||||
cr.execute("UPDATE product_product "
|
||||
"SET default_code = '!!PR!!' || id "
|
||||
"WHERE default_code IS NULL OR default_code = 'New';")
|
||||
pass
|
||||
except Exception as e:
|
||||
raise Warning(e)
|
||||
|
||||
Reference in New Issue
Block a user