mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix odoo title
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo Customize OEM(Boost, Data reset)',
|
'name': 'odoo Customize OEM(Boost, Data reset)',
|
||||||
'version': '14.20.12.29',
|
'version': '14.21.03.03',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Productivity',
|
'category': 'Productivity',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
|
|||||||
@@ -9,10 +9,9 @@ _logger = logging.getLogger(__name__)
|
|||||||
class View(models.Model):
|
class View(models.Model):
|
||||||
_inherit = 'ir.ui.view'
|
_inherit = 'ir.ui.view'
|
||||||
|
|
||||||
@api.model
|
def _render_template(self, template, values=None, engine='ir.qweb'):
|
||||||
def render_template(self, template, values=None, engine='ir.qweb'):
|
|
||||||
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"] = self.env['ir.config_parameter'].sudo().get_param("app_system_name", "odooApp")
|
values["title"] = self.env['ir.config_parameter'].sudo().get_param("app_system_name", "odooApp")
|
||||||
return super(View, self).render_template(template, values=values, engine=engine)
|
return super(View, self)._render_template(template, values=values, engine=engine)
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 421 KiB After Width: | Height: | Size: 421 KiB |
@@ -47,6 +47,8 @@
|
|||||||
<div class="oe_span12">
|
<div class="oe_span12">
|
||||||
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
||||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||||
|
<h3>Update: v14.21.03.03</h3>
|
||||||
|
<p>Fixed odoo Title.</p>
|
||||||
<h3>Update: v14.20.12.29</h3>
|
<h3>Update: v14.20.12.29</h3>
|
||||||
<p>36. Add refresh translate for multi module.</p>
|
<p>36. Add refresh translate for multi module.</p>
|
||||||
<h3>Update: v14.20.08.29</h3>
|
<h3>Update: v14.20.08.29</h3>
|
||||||
|
|||||||
Reference in New Issue
Block a user