← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 810451] Re: two setLang in the same line in rml -> pdf report

 

** Changed in: openobject-server
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/openobject-server/+question/166782

-- 
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 Server:
  Invalid

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 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".

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/810451/+subscriptions


References