add web_window_title
This commit is contained in:
parent
c17ceb75a3
commit
190d1f09c2
11 changed files with 172 additions and 0 deletions
18
web_window_title/models/ir_ui_view.py
Normal file
18
web_window_title/models/ir_ui_view.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import logging
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
class View(models.Model):
|
||||
_inherit = 'ir.ui.view'
|
||||
|
||||
@api.model
|
||||
def _render_template(self, template, values=None):
|
||||
if template in ['web.login', 'web.webclient_bootstrap']:
|
||||
if not values:
|
||||
values = {}
|
||||
values["title"] = self.env['ir.config_parameter'].sudo().get_param("web.base.title", "")
|
||||
return super(View, self)._render_template(template, values)
|
||||
Loading…
Add table
Add a link
Reference in a new issue