Skip to content

Instantly share code, notes, and snippets.

<t t-name="report_suite_galaxus.report_saleorder_document">
<t t-set="company" t-value="doc.company_id.sudo() or res_company"/>
<t t-set="is_proforma" t-value="env.context.get('proforma', False) or is_pro_forma"/>
<!-- HEADER & FOOTER VIA EXTERNAL LAYOUT -->
<t t-call="PASTE EXTERNAL ID OF EXTERNAL LAYOUT HERE">
<div class="page" style="font-size:7pt;">
<!-- DOCUMENT TITLE -->
<div style="font-size:16pt; padding-top: 8mm;">
<span t-if="is_proforma">
<t t-translation="on">Proforma Invoice</t>
<t t-name="report_suite_galaxus.external_layout">
<!-- Resolve company safely -->
<t t-if="not o" t-set="o" t-value="doc"/>
<t t-if="not company">
<t t-if="company_id">
<t t-set="company" t-value="company_id"/>
</t>
<t t-elif="o and 'company_id' in o and o.company_id.sudo()">
<t t-set="company" t-value="o.company_id.sudo()"/>
</t>