3
0
Fork 0

[MIG] web_company_color: Migration to 14.0

14.0
Francisco Ivan Anton Prieto 2021-01-21 20:04:09 +01:00
parent 3307c59c12
commit 34d22da39c
4 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

@ -63,7 +63,7 @@ class QWeb(models.AbstractModel):
_inherit = "ir.qweb" _inherit = "ir.qweb"
@api.model @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 """ """ Adds the active company to the context """
try: try:
active_company_id = int( active_company_id = int(
@ -76,7 +76,7 @@ class QWeb(models.AbstractModel):
or self.env.user.company_id or self.env.user.company_id
) )
self = self.with_context(active_company_id=company_id.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): def _get_asset_content(self, xmlid, options):
""" Handle 'special' web_company_color xmlid """ """ Handle 'special' web_company_color xmlid """

View File

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