[MIG] web_company_color: Migration to 14.0

pull/3025/head
Francisco Ivan Anton Prieto 2021-01-21 20:04:09 +01:00 committed by ArnauCForgeFlow
parent b1a0d90d6c
commit 6aee076c96
4 changed files with 5 additions and 3 deletions

View File

@ -69,6 +69,7 @@ Contributors
* Lois Rilo <lois.rilo@forgefloww.com> (ForgeFlow)
* Simone Orsi <simone.orsi@camptocamp.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Iván Antón <ozono@ozonomultimedia.com>
Maintainers
~~~~~~~~~~~

View File

@ -5,7 +5,7 @@
{
"name": "Web Company Color",
"category": "web",
"version": "13.0.1.0.1",
"version": "14.0.1.0.0",
"author": "Alexandre Díaz, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"depends": ["web", "base_sparse_field"],

View File

@ -63,7 +63,7 @@ class QWeb(models.AbstractModel):
_inherit = "ir.qweb"
@api.model
def render(self, id_or_xml_id, values=None, **options):
def _render(self, id_or_xml_id, values=None, **options):
""" Adds the active company to the context """
try:
active_company_id = int(
@ -76,7 +76,7 @@ class QWeb(models.AbstractModel):
or self.env.user.company_id
)
self = self.with_context(active_company_id=company_id.id)
return super().render(id_or_xml_id, values=values, **options)
return super()._render(id_or_xml_id, values=values, **options)
def _get_asset_content(self, xmlid, options):
""" Handle 'special' web_company_color xmlid """

View File

@ -2,3 +2,4 @@
* Lois Rilo <lois.rilo@forgefloww.com> (ForgeFlow)
* Simone Orsi <simone.orsi@camptocamp.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Iván Antón <ozono@ozonomultimedia.com>