[FIX] website_quote: correct company headers

When printing the online quote, using the "Print" button
in the online proposal in the front-end, the user
used to print the report is the SUPERUSER.

If `doc` or `o` is not set within the QWeb values,
the headers printed are the ones from the user company,
instead of the record company.

As this was the case in the `website_quote` report,
the company headers printed were not the sale order company
headers, but the SUPERUSER company headers.

opw-666306
This commit is contained in:
Denis Ledoux
2016-01-11 12:52:53 +01:00
parent 401d725096
commit 1195eae010
@@ -6,6 +6,7 @@
<t t-set="data_report_margin_top" t-value="45"/>
<t t-set="data_report_header_spacing" t-value="40"/>
<t t-call="report.external_layout">
<t t-set="o" t-value="docs[0]"/>
<t t-foreach="docs" t-as="quotation">
<div class="page">
<t t-call="website_quote.so_quotation_content"/>