summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/views
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2020-06-15 15:27:46 +0000
committerGoffin Simon <sig@odoo.com>2020-06-16 13:48:58 +0000
commit7394a68224e9d53761e5eae23408a1f1e19fab8f (patch)
treedb6c65ba1860a49ea40ea231109167e14adaa321 /addons/point_of_sale/views
parentf63bf7d7e49b6b31ea28e4b20c1caf0474ba379d (diff)
[FIX] point_of_sale: Wrong company on report
Steps to reproduce the bug: - Let's consider two companies C1 and C2 - Let's consider that the default company of the current user U is C1 - Log in C2 (only) - Print the POS details report Bug: The header of C1 was displayed. opw:2274282 closes odoo/odoo#53073 X-original-commit: 59f5e5767445d157d9cd496f6b2b49d516cf003b Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/point_of_sale/views')
-rw-r--r--addons/point_of_sale/views/report_saledetails.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/point_of_sale/views/report_saledetails.xml b/addons/point_of_sale/views/report_saledetails.xml
index d2921a12060..e52fca524ff 100644
--- a/addons/point_of_sale/views/report_saledetails.xml
+++ b/addons/point_of_sale/views/report_saledetails.xml
@@ -2,6 +2,7 @@
<openerp>
<data>
<template id="report_saledetails">
+ <t t-set="company" t-value="env['res.company'].browse(env.context.get('allowed_company_ids', [None])[0])"/>
<t t-call="web.html_container">
<t t-call="web.internal_layout">
<div class="page">