debug 管理员才可见,misc

This commit is contained in:
ivan deng
2023-04-07 02:02:39 +08:00
parent 6363f3ffd7
commit 8ffd00bff6
3 changed files with 3 additions and 2 deletions

View File

@@ -28,4 +28,5 @@ class IrHttp(models.AbstractModel):
result['app_show_poweredby'] = config_parameter.get_param('app_show_poweredby')
# 增加多语言
result['app_lang_list'] = self.env['res.lang'].search_read([], ['id', 'code', 'name'])
result['is_erp_manager'] = self.env.user.has_group('base.group_erp_manager')
return result