Odoo Help


1 Answer

Olivier Dony (odo) เบลเยียม

--Olivier Dony (odo)--

| 8 6 18
Ramilies, เบลเยียม
--Olivier Dony (odo)--


Olivier Dony (odo) เบลเยียม
3/9/13 10:36

Theoretically you should be able to call setLang() twice in the same report, keeping in mind that the effect will last only until the next call. This is how it works if you print multiple invoices at once: each invoice will have a setLang() call at the beginning, so it will be printed in the relevant Partner language.
You could do the same thing if you can cleanly split your report file in 2 sections and put a setLang() call before each section.

3 ความคิดเห็น
NOD Baltic, UAB, Tomas Parnarauskas ลิทัวเนีย
4/9/13 03:50

Yeah it works with invoices. For some reason for templates that first use odt document to generate report, this feature is out of the place - one language overrides the other.

NOD Baltic, UAB, Tomas Parnarauskas ลิทัวเนีย
4/9/13 04:27

The problem seems to be that template is divided into two columns - left an right. Then when I use setLang() function it set's language for god knows which part of text. I can't figure out then where to put setLang() to change language where I want, because if thinking that setLang() would change language for text bellow, it does not work like that. For example using setLang() below some text, it changes language for every text, even above. setting language in another column, it changes language two few paragraps...

youta กาตาร์
11/5/17 06:08

Can I get an example please for setLang()

Is it compatible with Odoo 10?

Ask a Question
Keep Informed
1 ผู้ติดตาม
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now