add web_window_title

This commit is contained in:
santi 2025-08-11 09:17:04 +00:00
parent c17ceb75a3
commit 190d1f09c2
11 changed files with 172 additions and 0 deletions

View 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)