fix 时区问题 and common

This commit is contained in:
ivan deng
2021-03-23 00:23:10 +08:00
parent e5c9cb8912
commit 5f3b900bf0
3 changed files with 8 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ def post_init_hook(cr, registry):
rec._compute_complete_name()
# 超级用户改时区为中国
ids = env['res.users'].sudo().with_context(lang='zh_CN').browse([1, 2])
ids.write({'tz': "Asia/Shanghai"})
ids.write({'tz': "Etc/GMT-8"})
except Exception as e:
raise Warning(e)