update trace

This commit is contained in:
ivan deng
2019-11-27 02:28:56 +08:00
parent b5ab360cfd
commit a17fd7f525
6 changed files with 12 additions and 62 deletions

View File

@@ -10,21 +10,20 @@ _logger = logging.getLogger(__name__)
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
app_system_name = fields.Char('System Name', help=u"Setup System Name,which replace Odoo")
app_system_name = fields.Char('System Name', help="Setup System Name,which replace Odoo")
app_show_lang = fields.Boolean('Show Quick Language Switcher',
help=u"When enable,User can quick switch language in user menu")
app_show_debug = fields.Boolean('Show Quick Debug', help=u"When enable,everyone login can see the debug menu")
app_show_documentation = fields.Boolean('Show Documentation', help=u"When enable,User can visit user manual")
help="When enable,User can quick switch language in user menu")
app_show_debug = fields.Boolean('Show Quick Debug', help="When enable,everyone login can see the debug menu")
app_show_documentation = fields.Boolean('Show Documentation', help="When enable,User can visit user manual")
app_show_documentation_dev = fields.Boolean('Show Developer Documentation',
help=u"When enable,User can visit development documentation")
app_show_support = fields.Boolean('Show Support', help=u"When enable,User can vist your support site")
app_show_account = fields.Boolean('Show My Account', help=u"When enable,User can login to your website")
app_show_enterprise = fields.Boolean('Show Enterprise Tag', help=u"Uncheck to hide the Enterprise tag")
app_show_share = fields.Boolean('Show Share Dashboard', help=u"Uncheck to hide the Odoo Share Dashboard")
app_show_poweredby = fields.Boolean('Show Powered by Odoo', help=u"Uncheck to hide the Powered by text")
app_stop_subscribe = fields.Boolean('Stop Odoo Subscribe(Performance Improve)', help=u"Check to stop Odoo Subscribe function")
help="When enable,User can visit development documentation")
app_show_support = fields.Boolean('Show Support', help="When enable,User can vist your support site")
app_show_account = fields.Boolean('Show My Account', help="When enable,User can login to your website")
app_show_enterprise = fields.Boolean('Show Enterprise Tag', help="Uncheck to hide the Enterprise tag")
app_show_share = fields.Boolean('Show Share Dashboard', help="Uncheck to hide the Odoo Share Dashboard")
app_show_poweredby = fields.Boolean('Show Powered by Odoo', help="Uncheck to hide the Powered by text")
group_show_author_in_apps = fields.Boolean(string="Show Author in Apps Dashboard", implied_group='app_odoo_customize.group_show_author_in_apps',
help=u"Uncheck to Hide Author and Website in Apps Dashboard")
help="Uncheck to Hide Author and Website in Apps Dashboard")
app_documentation_url = fields.Char('Documentation Url')
app_documentation_dev_url = fields.Char('Developer Documentation Url')
@@ -48,7 +47,6 @@ class ResConfigSettings(models.TransientModel):
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_documentation_url = ir_config.get_param('app_documentation_url',
default='https://www.sunpop.cn/documentation/user/12.0/en/index.html')
@@ -69,7 +67,6 @@ class ResConfigSettings(models.TransientModel):
app_show_enterprise=app_show_enterprise,
app_show_share=app_show_share,
app_show_poweredby=app_show_poweredby,
app_stop_subscribe=app_stop_subscribe,
app_documentation_url=app_documentation_url,
app_documentation_dev_url=app_documentation_dev_url,
@@ -93,7 +90,6 @@ class ResConfigSettings(models.TransientModel):
ir_config.set_param("app_show_enterprise", self.app_show_enterprise or "False")
ir_config.set_param("app_show_share", self.app_show_share or "False")
ir_config.set_param("app_show_poweredby", self.app_show_poweredby or "False")
ir_config.set_param("app_stop_subscribe", self.app_stop_subscribe or "False")
ir_config.set_param("app_documentation_url",
self.app_documentation_url or "https://www.sunpop.cn/documentation/user/12.0/en/index.html")