wrong currency rounding
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
openobject-
Steps:
- Configure 'account' module using EUR currency
- Configure a bank journal for USD currency
- Create a new rate for USD currency, with date 2011-10-01
- Create a new invoice, with date 2011-09-01, selecting USD currency and inserting one line of 3638.97 amount
- Pay the invoice selecting 'Reconcile with Write-Off' (with today's date)
The write.off entry is not created (it should be produced by the different currency rates).
This is because of line 88 of base/res/
round(amount / currency.rounding) * currency.rounding
3638.9700000000003
and this makes false the line 719 of account_voucher.py (line.amount == line.amount_
I think the line
return round(amount / currency.rounding) * currency.rounding
should be replaced by something like
float(Decimal(
Related branches
- Vinay Rana (OpenERP) (community): Approve
- Lorenzo Battistini (community): Approve
- Amit Dodiya (OpenERP) (community): Needs Resubmitting
- Naresh(OpenERP): Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedaccount_voucher/account_voucher.py (+1/-1)
- Olivier Dony (Odoo): Disapprove
- Lorenzo Battistini (community): Needs Fixing
- Vo Minh Thu: Pending requested
-
Diff: 20 lines (+2/-1)1 file modifiedbin/addons/base/res/res_currency.py (+2/-1)
Changed in openobject-addons: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | In Progress → Fix Committed |
Hello,
I have faced the same problem. The currency rate applied properly but "Amount Currency" doesn't proper.
For more reference I have attached a screen-shots so would you please check it.
Thanks.