Currency symbol hardcoded in Reports (ver 7)

Bug #1090503 reported by Ray Carnes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

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>

Related branches

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

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
Revision history for this message
Ray Carnes (rcarnes) wrote :

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.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

+1 Ray!

Dollar signs in the U.S. are normally written before an amount, and the cents sign after an amount. In some parts of the world (for ex. Québec) the dollar sign is written afterwards, however.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: Incomplete → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ajay Chauhan(OpenERP) (cha-tinyerp) wrote :

Hello Ray,

 This issue has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1090503-cha with following details
    Revision no : 8376
    Revision id : <email address hidden>

Thanks,
Ajay Chauhan

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.