|
|
|
|
@@ -37,26 +37,26 @@ class AppThemeConfigSettings(models.TransientModel):
|
|
|
|
|
@api.model
|
|
|
|
|
def get_values(self):
|
|
|
|
|
ir_config = self.env['ir.config_parameter']
|
|
|
|
|
app_system_name = ir_config.get_param('app_system_name', default='odooApp')
|
|
|
|
|
app_system_name = ir_config.sudo().get_param('app_system_name', default='odooApp')
|
|
|
|
|
|
|
|
|
|
app_show_lang = True if ir_config.get_param('app_show_lang') == "True" else False
|
|
|
|
|
app_show_debug = True if ir_config.get_param('app_show_debug') == "True" else False
|
|
|
|
|
app_show_documentation = True if ir_config.get_param('app_show_documentation') == "True" else False
|
|
|
|
|
app_show_documentation_dev = True if ir_config.get_param('app_show_documentation_dev') == "True" else False
|
|
|
|
|
app_show_support = True if ir_config.get_param('app_show_support') == "True" else False
|
|
|
|
|
app_show_account = True if ir_config.get_param('app_show_account') == "True" else False
|
|
|
|
|
app_show_enterprise = True if ir_config.get_param('app_show_enterprise') == "True" else False
|
|
|
|
|
app_show_share = True if ir_config.get_param('app_show_share') == "True" else False
|
|
|
|
|
app_show_poweredby = True if ir_config.get_param('app_show_poweredby') == "True" else False
|
|
|
|
|
app_stop_subscribe = True if ir_config.get_param('app_stop_subscribe') == "True" else False
|
|
|
|
|
app_show_lang = True if ir_config.sudo().get_param('app_show_lang') == "True" else False
|
|
|
|
|
app_show_debug = True if ir_config.sudo().get_param('app_show_debug') == "True" else False
|
|
|
|
|
app_show_documentation = True if ir_config.sudo().get_param('app_show_documentation') == "True" else False
|
|
|
|
|
app_show_documentation_dev = True if ir_config.sudo().get_param('app_show_documentation_dev') == "True" else False
|
|
|
|
|
app_show_support = True if ir_config.sudo().get_param('app_show_support') == "True" else False
|
|
|
|
|
app_show_account = True if ir_config.sudo().get_param('app_show_account') == "True" else False
|
|
|
|
|
app_show_enterprise = True if ir_config.sudo().get_param('app_show_enterprise') == "True" else False
|
|
|
|
|
app_show_share = True if ir_config.sudo().get_param('app_show_share') == "True" else False
|
|
|
|
|
app_show_poweredby = True if ir_config.sudo().get_param('app_show_poweredby') == "True" else False
|
|
|
|
|
app_stop_subscribe = True if ir_config.sudo().get_param('app_stop_subscribe') == "True" else False
|
|
|
|
|
|
|
|
|
|
app_documentation_url = ir_config.get_param('app_documentation_url',
|
|
|
|
|
app_documentation_url = ir_config.sudo().get_param('app_documentation_url',
|
|
|
|
|
default='http://www.sunpop.cn/documentation/user/10.0/en/index.html')
|
|
|
|
|
app_documentation_dev_url = ir_config.get_param('app_documentation_dev_url',
|
|
|
|
|
app_documentation_dev_url = ir_config.sudo().get_param('app_documentation_dev_url',
|
|
|
|
|
default='http://www.sunpop.cn/documentation/10.0/index.html')
|
|
|
|
|
app_support_url = ir_config.get_param('app_support_url', default='http://www.sunpop.cn/trial/')
|
|
|
|
|
app_account_title = ir_config.get_param('app_account_title', default='My Online Account')
|
|
|
|
|
app_account_url = ir_config.get_param('app_account_url', default='http://www.sunpop.cn/my-account/')
|
|
|
|
|
app_support_url = ir_config.sudo().get_param('app_support_url', default='http://www.sunpop.cn/trial/')
|
|
|
|
|
app_account_title = ir_config.sudo().get_param('app_account_title', default='My Online Account')
|
|
|
|
|
app_account_url = ir_config.sudo().get_param('app_account_url', default='http://www.sunpop.cn/my-account/')
|
|
|
|
|
return dict(
|
|
|
|
|
app_system_name=app_system_name,
|
|
|
|
|
app_show_lang=app_show_lang,
|
|
|
|
|
|