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:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
3896
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
wrz 24
|
1399 | ||
How do i create report in Qweb?
Rozwiązane
|
|
5
sie 19
|
46067 | |
|
4
cze 18
|
19457 | ||
|
0
cze 18
|
2967 | ||
What is QWeb (Odoo's reporting engine)?
Rozwiązane
|
|
2
maj 16
|
16245 |