← Back to team overview

openerp-india team mailing list archive

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

 

Hello Ray Carnes ,

I have checked you issue with trunk and its working fine with other currency also 
If you want to change a currency then you can set it currency in company.
For  formatLang(value, digits=2, date=False, date_time=False, grouping=True, monetary=False) 
can be used to format a date, time or amount according to the locale ( not for symbol).So you can
change your currency in company.

Correct me if I am wrong...

Thanks and waiting for reply.


** Changed in: openobject-addons
       Status: New => Incomplete

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