lp:~openerp-dev/openobject-server/trunk-float-rounding-odo
Created by
Olivier Dony (Odoo)
and last modified
- Get this branch:
- bzr branch lp:~openerp-dev/openobject-server/trunk-float-rounding-odo
Members of
OpenERP R&D Team
can upload to this branch. Log in for directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Vo Minh Thu (community): Approve
- Lorenzo Battistini (community): Abstain
-
Diff: 508 lines (+406/-18)6 files modifiedopenerp/addons/base/res/res_currency.py (+42/-8)
openerp/addons/base/test/base_test.yml (+160/-0)
openerp/osv/fields.py (+16/-9)
openerp/tools/__init__.py (+1/-0)
openerp/tools/float_utils.py (+186/-0)
openerp/tools/misc.py (+1/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 3810. By Olivier Dony (Odoo)
-
[FIX] fields.float: always round floats when persisting
Added test to try a full round-trip to
the database as well to make sure the
automatic rounding is working properly. - 3807. By Olivier Dony (Odoo)
-
[FIX] fields.float: properly round when coercing to desired float precision
- 3806. By Olivier Dony (Odoo)
-
[IMP] float_utils: fix HALF_UP rounding according to discussions on bug 882036
Also improved test and added warning logging when
crossing the precision limit due to too many
significant digits. There is apparently a limitation
in Python's float implementation for this.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:openobject-server