How can i change report language in odoo v12? I always want to print in the same language, regardless of user preference.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
4795
瀏覽次數
Hi,
You can remove t-lang attribute from report template to print the report in same language
Example:
< template id="report_saleorder">
< t t-call="web.html_container">
< t t-foreach="docs" t-as="doc">
< t t-call="sale.report_saleorder_document" t-lang="doc.partner_id.lang" rel="ugc">"/>
< /t>
< /t>
< /template>This is sale order report template in V12. Currently it will be printed in partner language, you can remove t-lang attribute to print in the same language irrespective of partner.
Regards
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
|
2
9月 24
|
2784 | ||
|
|
5
8月 19
|
47317 | ||
|
|
4
6月 18
|
20954 | ||
|
|
0
6月 18
|
3885 | ||
|
|
2
5月 16
|
18027 |