mirror of https://github.com/OCA/web.git
[MIG] web_company_color: Migration to 14.0
parent
b1a0d90d6c
commit
6aee076c96
|
@ -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
|
||||
~~~~~~~~~~~
|
||||
|
|
|
@ -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"],
|
||||
|
|
|
@ -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 """
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue