osbzr/gooderp_addons

View on GitHub
app_odoo_customize/models/ir_ui_view.py

Summary

Maintainability
A
0 mins
Test Coverage
# -*- coding: utf-8 -*-

import logging

from openerp 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, engine='ir.qweb'):
        if template in ['web.login', 'web.webclient_bootstrap']:
            values = values or {}
            values["title"] = self.env['ir.config_parameter'].get_param("app_system_name", "odooApp")
        return super(View, self).render_template(template, values=values, engine=engine)