Skip to Content
Menu
This question has been flagged
1116 Views

odoo ignored customer lang after Inherit Quotation template  


<template id="report_saleorder_document_1" inherit_id="sale.report_saleorder_document">
<t t-call="web.external_layout" position="replace">

<t t-call="web.external_layout">
<t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)" />
<!-- t t-set="address">
</t>
</template >

<template id="report_saleorder_1">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="business_report. report_saleorder_document_1" t-lang="doc.partner_id.lang"/>
</t>
</t>
</template>

<template id="report_saleorder_pro_forma_1">
<t t-call="web.html_container">
<t t-set="is_pro_forma" t-value="True"/>
<t t-foreach="docs" t-as="doc">
<t t-call="business_report.report_saleorder_document_1" t-lang="doc.partner_id.lang"/>
</t>
</t>
</template>
Avatar
Discard
Related Posts Replies Views Activity
0
May 24
256
0
Jul 22
939
0
Oct 20
2519
4
Oct 19
3066
2
Feb 22
6918