Skip to content

Commit

Permalink
[MIG] web_company_color: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ozono committed Jan 21, 2021
1 parent 3307c59 commit 34d22da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions web_company_color/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Contributors
* Lois Rilo <[email protected]> (ForgeFlow)
* Simone Orsi <[email protected]>
* Jairo Llopis <[email protected]>
* Iván Antón <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion web_company_color/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions web_company_color/models/ir_qweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -76,7 +76,7 @@ def render(self, id_or_xml_id, values=None, **options):
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 """
Expand Down
1 change: 1 addition & 0 deletions web_company_color/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
* Lois Rilo <[email protected]> (ForgeFlow)
* Simone Orsi <[email protected]>
* Jairo Llopis <[email protected]>
* Iván Antón <[email protected]>

0 comments on commit 34d22da

Please sign in to comment.