mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update most name to odooAi
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo 16 Customize OEM(Boost, Data reset)',
|
'name': 'odoo 16 Customize OEM(Boost, Data reset)',
|
||||||
'version': '16.23.04.10',
|
'version': '16.23.04.19',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Productivity',
|
'category': 'Productivity',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<openerp>
|
<openerp>
|
||||||
<data noupdate="1">
|
<data noupdate="1">
|
||||||
<function model="ir.config_parameter" name="set_param" eval="('app_system_name', 'odooApp16')"/>
|
<function model="ir.config_parameter" name="set_param" eval="('app_system_name', 'odooAi')"/>
|
||||||
<function model="ir.config_parameter" name="set_param" eval="('app_show_lang', 'True')"/>
|
<function model="ir.config_parameter" name="set_param" eval="('app_show_lang', 'True')"/>
|
||||||
<function model="ir.config_parameter" name="set_param" eval="('app_show_debug', 'True')"/>
|
<function model="ir.config_parameter" name="set_param" eval="('app_show_debug', 'True')"/>
|
||||||
<function model="ir.config_parameter" name="set_param" eval="('app_show_documentation', 'True')"/>
|
<function model="ir.config_parameter" name="set_param" eval="('app_show_documentation', 'True')"/>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class IrHttp(models.AbstractModel):
|
|||||||
def session_info(self):
|
def session_info(self):
|
||||||
result = super(IrHttp, self).session_info()
|
result = super(IrHttp, self).session_info()
|
||||||
config_parameter = request.env['ir.config_parameter'].sudo()
|
config_parameter = request.env['ir.config_parameter'].sudo()
|
||||||
result['app_system_name'] = config_parameter.get_param('app_system_name', 'odooApp')
|
result['app_system_name'] = config_parameter.get_param('app_system_name', 'odooAi')
|
||||||
result['app_documentation_url'] = config_parameter.get_param('app_documentation_url')
|
result['app_documentation_url'] = config_parameter.get_param('app_documentation_url')
|
||||||
result['app_documentation_dev_url'] = config_parameter.get_param('app_documentation_dev_url')
|
result['app_documentation_dev_url'] = config_parameter.get_param('app_documentation_dev_url')
|
||||||
result['app_support_url'] = config_parameter.get_param('app_support_url')
|
result['app_support_url'] = config_parameter.get_param('app_support_url')
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ class View(models.Model):
|
|||||||
# if template in ['web.login', 'web.webclient_bootstrap']:
|
# if template in ['web.login', 'web.webclient_bootstrap']:
|
||||||
if not values:
|
if not values:
|
||||||
values = {}
|
values = {}
|
||||||
values["title"] = values["app_title"] = self.env['ir.config_parameter'].sudo().get_param("app_system_name", "odooApp")
|
values["title"] = values["app_title"] = self.env['ir.config_parameter'].sudo().get_param("app_system_name", "odooAi")
|
||||||
return super(View, self)._render_template(template, values=values, engine=engine)
|
return super(View, self)._render_template(template, values=values, engine=engine)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
_inherit = 'res.config.settings'
|
_inherit = 'res.config.settings'
|
||||||
|
|
||||||
app_system_name = fields.Char('System Name', help="Setup System Name,which replace Odoo",
|
app_system_name = fields.Char('System Name', help="Setup System Name,which replace Odoo",
|
||||||
default='odooApp16', config_parameter='app_system_name')
|
default='odooAi', config_parameter='app_system_name')
|
||||||
app_show_lang = fields.Boolean('Show Quick Language Switcher',
|
app_show_lang = fields.Boolean('Show Quick Language Switcher',
|
||||||
help="When enable,User can quick switch language in user menu",
|
help="When enable,User can quick switch language in user menu",
|
||||||
default=True, config_parameter='app_show_lang')
|
default=True, config_parameter='app_show_lang')
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<t t-extend="res_config_edition">
|
<t t-extend="res_config_edition">
|
||||||
<t t-jquery=".user-heading h3" t-operation="replace">
|
<t t-jquery=".user-heading h3" t-operation="replace">
|
||||||
<h3>
|
<h3>
|
||||||
odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Professional Edition)
|
odooAi <t t-esc="widget.server_version"/> (Sunpop.cn Professional Edition)
|
||||||
</h3>
|
</h3>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
<!-- 处理 title 及 theme-color-->
|
<!-- 处理 title 及 theme-color-->
|
||||||
<template id="app_layout" inherit_id="web.layout" name="app Web layout">
|
<template id="app_layout" inherit_id="web.layout" name="app Web layout">
|
||||||
<xpath expr="//title" position="replace">
|
<xpath expr="//title" position="replace">
|
||||||
<title t-esc="title or 'odooApp'"/>
|
<title t-esc="title or 'odooAi'"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
<!-- end-->
|
<!-- end-->
|
||||||
<template id="replace_login" name="Login Layout" inherit_id="web.login_layout">
|
<template id="replace_login" name="Login Layout" inherit_id="web.login_layout">
|
||||||
<xpath expr="//a[@target='_blank']" position="replace">
|
<xpath expr="//a[@target='_blank']" position="replace">
|
||||||
<a href="https://www.sunpop.cn" target="_blank">Powered by
|
<a href="https://www.sunpop.cn" target="_blank">Powered by
|
||||||
<span>odooApp</span>
|
<span>odooAi</span>
|
||||||
</a>
|
</a>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<field name="model">res.config.settings</field>
|
<field name="model">res.config.settings</field>
|
||||||
<field name="priority">20</field>
|
<field name="priority">20</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="odooApp Customize Settings" class="oe_form_configuration">
|
<form string="odooAi Customize Settings" class="oe_form_configuration">
|
||||||
<header>
|
<header>
|
||||||
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
|
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
|
||||||
<button string="Cancel" type="object" name="cancel" class="oe_link" special="cancel"/>
|
<button string="Cancel" type="object" name="cancel" class="oe_link" special="cancel"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user