You have been subscribed to a public bug:

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 257 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

Corrected: "line 275" to "line 257".

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
two setLang in the same line in rml -> pdf  report
https://bugs.launchpad.net/bugs/810451
You received this bug notification because you are a member of OpenERP CTP, 
which is subscribed to OpenERP Server.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to