mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix checkmodule
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
{
|
||||
'name': "App base chinese,中国化基本模块增强",
|
||||
'version': '12.19.04.15',
|
||||
'version': '12.19.05.01',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Base',
|
||||
'website': 'https://www.sunpop.cn',
|
||||
@@ -36,9 +36,10 @@
|
||||
2. 客户加简称,地址显示中文化,客户编码显示优先
|
||||
3. 客户地址显示增加手机号与电话号码
|
||||
4. 货币处理,增加排序显示
|
||||
6. 用户名支持翻译(可能会增加复杂度,后续看)
|
||||
5. 修正产品类别的列表及m2o字段中不显示中文目录名的Bug
|
||||
6. 修正仓库位置的列表及m2o字段中不显示中文目录名的Bug
|
||||
5. 用户名支持翻译(可能会增加复杂度,后续看)
|
||||
6. 修正产品类别的列表及m2o字段中不显示中文目录名的Bug
|
||||
7. 修正仓库位置的列表及m2o字段中不显示中文目录名的Bug
|
||||
8. 超级用户改时区为 中国
|
||||
11. todo:中文演示数据(只有demo模式才加载)
|
||||
|
||||
""",
|
||||
|
||||
@@ -17,12 +17,14 @@
|
||||
|
||||
from odoo import api, SUPERUSER_ID, _
|
||||
|
||||
|
||||
def pre_init_hook(cr):
|
||||
"""
|
||||
数据初始化,只在安装时执行,更新时不执行
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
"""
|
||||
数据初始化,只在安装后执行,更新时不执行
|
||||
@@ -37,5 +39,10 @@ def post_init_hook(cr, registry):
|
||||
('location_id', '=', False)
|
||||
])
|
||||
ids._compute_complete_name()
|
||||
# 超级用户改时区为中国
|
||||
ids = env['res.users'].sudo().with_context(lang='zh_CN').search([
|
||||
('id', '=', 2)
|
||||
])
|
||||
ids.write({'tz': "Asia/Shanghai"})
|
||||
except Exception as e:
|
||||
raise Warning(e)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
Reference in New Issue
Block a user