mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
调整移动端将bar放在下方
This commit is contained in:
@@ -29,4 +29,7 @@ class IrHttp(models.AbstractModel):
|
||||
# 增加多语言
|
||||
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')
|
||||
# 增加 bar位置处理
|
||||
result['app_navbar_pos_pc'] = config_parameter.get_param('app_navbar_pos_pc', 'top')
|
||||
result['app_navbar_pos_mobile'] = config_parameter.get_param('app_navbar_pos_mobile', 'top')
|
||||
return result
|
||||
|
||||
@@ -17,39 +17,43 @@ class ResConfigSettings(models.TransientModel):
|
||||
help="When enable,User can quick switch language in user menu",
|
||||
config_parameter='app_show_lang')
|
||||
app_show_debug = fields.Boolean('Show Quick Debug', help="When enable,everyone login can see the debug menu",
|
||||
default=True, config_parameter='app_show_debug')
|
||||
config_parameter='app_show_debug')
|
||||
app_show_documentation = fields.Boolean('Show Documentation', help="When enable,User can visit user manual",
|
||||
default=False, config_parameter='app_show_documentation')
|
||||
config_parameter='app_show_documentation')
|
||||
# 停用
|
||||
app_show_documentation_dev = fields.Boolean('Show Developer Documentation',
|
||||
help="When enable,User can visit development documentation")
|
||||
app_show_support = fields.Boolean('Show Support', help="When enable,User can vist your support site",
|
||||
config_parameter='app_show_support')
|
||||
app_show_account = fields.Boolean('Show My Account', help="When enable,User can login to your website",
|
||||
default=False, config_parameter='app_show_account')
|
||||
config_parameter='app_show_account')
|
||||
app_show_enterprise = fields.Boolean('Show Enterprise Tag', help="Uncheck to hide the Enterprise tag",
|
||||
default=False, config_parameter='app_show_enterprise')
|
||||
config_parameter='app_show_enterprise')
|
||||
app_show_share = fields.Boolean('Show Share Dashboard', help="Uncheck to hide the Odoo Share Dashboard",
|
||||
default=False, config_parameter='app_show_share')
|
||||
config_parameter='app_show_share')
|
||||
app_show_poweredby = fields.Boolean('Show Powered by Odoo', help="Uncheck to hide the Powered by text",
|
||||
default=False, config_parameter='app_show_poweredby')
|
||||
onfig_parameter='app_show_poweredby')
|
||||
group_show_author_in_apps = fields.Boolean(string="Show Author in Apps Dashboard", implied_group='app_odoo_customize.group_show_author_in_apps',
|
||||
help="Uncheck to Hide Author and Website in Apps Dashboard")
|
||||
module_odoo_referral = fields.Boolean('Show Odoo Referral', help="Uncheck to remove the Odoo Referral")
|
||||
|
||||
app_documentation_url = fields.Char('Documentation Url', config_parameter='app_documentation_url',
|
||||
default='https://www.sunpop.cn/documentation/user/13.0/en/index.html')
|
||||
app_documentation_url = fields.Char('Documentation Url', config_parameter='app_documentation_url')
|
||||
app_documentation_dev_url = fields.Char('Developer Documentation Url', config_parameter='app_documentation_dev_url')
|
||||
app_support_url = fields.Char('Support Url', config_parameter='app_support_url',
|
||||
default='https://www.sunpop.cn/trial')
|
||||
app_account_title = fields.Char('My Odoo.com Account Title', config_parameter='app_account_title',
|
||||
default='My Online Account')
|
||||
app_account_url = fields.Char('My Odoo.com Account Url', config_parameter='app_account_url',
|
||||
default='https://www.sunpop.cn/my-account/')
|
||||
app_enterprise_url = fields.Char('Customize Module Url(eg. Enterprise)', config_parameter='app_enterprise_url',
|
||||
default='https://www.sunpop.cn')
|
||||
app_ribbon_name = fields.Char('Show Demo Ribbon', config_parameter='app_ribbon_name',
|
||||
default='*Sunpop.cn')
|
||||
app_support_url = fields.Char('Support Url', config_parameter='app_support_url')
|
||||
app_account_title = fields.Char('My Odoo.com Account Title', config_parameter='app_account_title')
|
||||
app_account_url = fields.Char('My Odoo.com Account Url', config_parameter='app_account_url')
|
||||
app_enterprise_url = fields.Char('Customize Module Url(eg. Enterprise)', config_parameter='app_enterprise_url')
|
||||
app_ribbon_name = fields.Char('Show Demo Ribbon', config_parameter='app_ribbon_name')
|
||||
app_navbar_pos_pc = fields.Selection(string="Navbar PC", selection=[
|
||||
('top', 'Top(Default)'),
|
||||
('bottom', 'Bottom'),
|
||||
# ('left', 'Left'),
|
||||
], config_parameter='app_navbar_pos_pc')
|
||||
app_navbar_pos_mobile = fields.Selection(string="Navbar Mobile", selection=[
|
||||
('top', 'Top(Default)'),
|
||||
('bottom', 'Bottom'),
|
||||
# ('left', 'Left'),
|
||||
], config_parameter='app_navbar_pos_mobile')
|
||||
|
||||
def set_module_url(self):
|
||||
sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % (self.app_enterprise_url, 'OEEL%')
|
||||
|
||||
Reference in New Issue
Block a user