跳至內容
選單
此問題已被標幟
1597 瀏覽次數

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>
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 24
834
0
7月 22
1541
0
10月 20
3259
4
10月 19
4065
2
2月 22
8448