← Back to team overview

openerp-india team mailing list archive

[Bug 1090503] Re: Currency symbol hardcoded in Reports (ver 7)

 

Hi Jignesh,

I can change currency - but it always prints on the right hand side of
the amount in the reports I reference.

It prints: 5.00 $

I want: $ 5.00

All other reports in OpenERP use formatLang with obj=company.currency_id
to get the placement (left or right) from the currency record in the
database.

Let me know if it isn't clear.

Ray.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1090503

Title:
  Currency symbol hardcoded in Reports (ver 7)

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Revision 8075 of addons (version 7).

  The following RML files hardcode currency symbol printing to the right
  of the amount, instead of using the format_lang function with the
  currency_obj=company.currency_id argument:

  FILE: account_followup/report/account_followup_print.rml
  LINE: 215
   <para style="terp_default_Right_9">[[formatLang(reduce(lambda x,y: x+y['balance'], cur_lines['line'], 0.00)) ]]
   [[ line['currency_id'] ]] </para>

  FILE: lunch/report/order.rml
  LINE: 140
  <para style="terp_default_9_right_bold"><u>[[ formatLang(get_total(o,objects)) ]] [[ (o.company_id and o.comp
  any_id.currency_id and o.company_id.currency_id.symbol) or '' ]]</u></para>
  LINE: 158
   <para style="terp_default_9_right">[[ lines.price ]] [[ (o.company_id and o.company_id.currency_id
   and o.company_id.currency_id.symbol) or '' ]]</para>
  LINE: 175
  <para style="terp_default_9_right_bold">[[ formatLang(get_nettotal()) ]] [[ (o.company_id and o.company_id.
  currency_id and o.company_id.currency_id.symbol) or '' ]]</para>

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


References