update odoo customize set lang

This commit is contained in:
ivan deng
2023-02-19 01:09:07 +08:00
parent a5dc918719
commit f4072ce20e
8 changed files with 187 additions and 53 deletions

View File

@@ -19,10 +19,13 @@ class IrHttp(models.AbstractModel):
result['app_support_url'] = config_parameter.get_param('app_support_url')
result['app_account_title'] = config_parameter.get_param('app_account_title')
result['app_account_url'] = config_parameter.get_param('app_account_url')
result['app_show_lang'] = config_parameter.get_param('app_show_lang')
result['app_show_debug'] = config_parameter.get_param('app_show_debug')
result['app_show_documentation'] = config_parameter.get_param('app_show_documentation')
result['app_show_documentation_dev'] = config_parameter.get_param('app_show_documentation_dev')
result['app_show_support'] = config_parameter.get_param('app_show_support')
result['app_show_account'] = config_parameter.get_param('app_show_account')
result['app_show_poweredby'] = config_parameter.get_param('app_show_poweredby')
# 增加多语言
result['app_lang_list'] = self.env['res.lang'].search_read([], ['id', 'code', 'name'])
return result