c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #28535
[Bug 810451] [NEW] two setLang in the same line in rml -> pdf report
Public bug reported:
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
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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):
New
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
Follow ups
References