fix odoo title

This commit is contained in:
ivan deng
2021-03-03 19:08:02 +08:00
parent 046bd1b897
commit 45daf52e22
4 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@
{
'name': 'odoo Customize OEM(Boost, Data reset)',
'version': '14.20.12.29',
'version': '14.21.03.03',
'author': 'Sunpop.cn',
'category': 'Productivity',
'website': 'https://www.sunpop.cn',

View File

@@ -9,10 +9,9 @@ _logger = logging.getLogger(__name__)
class View(models.Model):
_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 not values:
values = {}
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

View File

@@ -47,6 +47,8 @@
<div class="oe_span12">
<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%;">
<h3>Update: v14.21.03.03</h3>
<p>Fixed odoo Title.</p>
<h3>Update: v14.20.12.29</h3>
<p>36. Add refresh translate for multi module.</p>
<h3>Update: v14.20.08.29</h3>