c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #28619
[Bug 810451] Re: two setLang in the same line in rml -> pdf report
Hello Tarpi,
You have applied two languages using setlang but see, Partner lang is
already applied in starting code of rml (line 140 in rml file) so no
need to use repeat code, If you will change the lang with respect of
company It will applied after setlang.But I am not getting you clear in
the specification what result you did aspect after using this setlang
with multiple lang.
As for My opinion I did not find any problem in setting a language.
Would you please elaborate more on this.
Thanks.
** Changed in: openobject-addons
Status: New => Incomplete
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/810451
Title:
two setLang in the same line in rml -> pdf report
Status in OpenERP Modules (addons):
Incomplete
Bug description:
Hi all,
Sys: OERP 6.0.2. on Ubuntu 10.10
I have the customer invoice report (account_print_invoice.rml) in two languages. I have the following line in the rml file:
[[l.uos_id.name]][['/']][[setLang(o.partner_id.lang)]][[l.uos_id.name]][[setLang(company.partner_id.lang)]]
and in the pdf I had pce/buc.
I upgraded the server to rev. 3462 and now I have the entire line only in one language, the first one.
To reproduce:
1. Fresh database
2. install a second language (a different as the main company)
3. translate the pce measure unit to that language
4. Modify the accpunt>report>account_print_invoice.rml change the line 275 to this :
<para style="terp_default_Right_9">[[ formatLang(l.quantity)]] [[ (l.uos_id and l.uos_id.name) or '' ]] [[ setLang(company.partner_id.lang) ]] [[ (l.uos_id and l.uos_id.name) or '' ]] [[ setLang(o.partner_id.lang) ]] </para>
5. Create a draft customer invoice with least one product, with pce measuring unit.
6. Print the invoice.
Thanks,
TArpi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/810451/+subscriptions
References