voucher currency-related issues

Bug #726296 reported by Albert Cervera i Areny - http://www.NaN-tic.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Processing a voucher which has currency_id field set to NULL will crash. This is reasonable but what should happen in the first place is that currency_id should be a required field.

Also, at one point the module uses "==" comparison to compare two float values instead of res.currency's is_zero() function.

The attached patch fixes both issues.

Tags: nan

Related branches

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Albert Cervera,

Its fix in lp:~openerp-dev/openobject-addons/trunk-bug-726296-ara branch. It will be merge soon with trunk addons.
Thanks for contribution.

Revision ID: <email address hidden>
Revision No: 4547

Thanks,
ara

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Fix Committed → Fix Released
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.