Files
odoo_source/addons/website_quote/views/report_quotation.xml
T
Denis Ledoux 1195eae010 [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
2016-01-11 12:52:53 +01:00

20 lines
698 B
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_quote">
<t t-call="report.html_container">
<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"/>
</div>
</t>
</t>
</t>
</template>
</data>
</openerp>