summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/menu.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-12-19 14:08:17 +0000
committerNicolas Martinelli <nim@odoo.com>2018-12-19 14:18:13 +0000
commit012eefcf3e773bc334cf5d019026bb0663b647b2 (patch)
tree1b13146b2a644df36d5833dfb9af0169105ae313 /addons/web/static/src/xml/menu.xml
parent231c466abf3148ca3fe9ef47c23ea65f958b915c (diff)
[FIX] sale: company logo on portal
- Set a logo for Companies A & B - Create a partner P in A - Create a SO for P in B - Send the SO by email - In the email received, click on 'View Sales Order' The logo displayed is the logo of Company A instead of Company B. The logo is retrieved from `res_company` in the template: https://github.com/odoo/odoo/blob/6be0cdef98fdafc2cb90042758de1b756e955624/addons/portal/views/portal_templates.xml#L31 However, `res_company` is set based on the company of the user: https://github.com/odoo/odoo/blob/6be0cdef98fdafc2cb90042758de1b756e955624/odoo/addons/base/models/ir_ui_view.py#L1295 We make sure to set `res_company` based on the company of the order instead. This works since the `values` have the priority over the `qcontext`: https://github.com/odoo/odoo/blob/fa9874915449896ff770adbb63780629c18b3e7b/odoo/addons/base/models/ir_ui_view.py#L1283 opw-1913665 closes odoo/odoo#29649
Diffstat (limited to 'addons/web/static/src/xml/menu.xml')
0 files changed, 0 insertions, 0 deletions