odoo/openerp/addons/base
Martin Trigaux 7705f883d2 [FIX] base: support float rounding with rounding_method=UP (ceiling)
Add rounding_method parameter on float_round method to offer
HALF-UP (default, usual round) or UP (ceiling) rounding method.
Use the second method instead of math.ceil() for product
reservations.

For UP, the python math.ceil() method uses "torwards infinity"
rounding method while we want "away from zero".
Therefore we use the absolute value of normalized_value to make
sure than -1.8 is rounded to -2.0 and not -1.

Fixes #1125 #2793

This is a cherry-pick of d4972ff which was reverted at 333852e due
to remaining issue with negative values.
2014-10-22 14:28:22 +02:00
..
data [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
i18n [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
ir [FIX] ir.mail.server: restore parsing of multiple RFC2822 addresses including non-ASCII chars 2014-10-10 18:32:00 +02:00
module [IMP] module: when uninstalling a module, do not redirect to a useless screen 2014-06-23 13:09:36 +02:00
report [FIX] rml reports: no hardcoded template pageSize - is set by company header/footer to A4 or US Letter 2012-12-21 16:49:06 +01:00
res [FIX] res_partner: add parent_name related field 2014-10-20 15:50:49 +02:00
rng [IMP] revert improt add 2012-11-26 08:21:47 +01:00
security [FIX] base: security: employee must have access to res.groups 2014-08-28 18:14:08 +02:00
static/src [FIX] modules: install_from_urls: restrict to administrators. Urls must come from apps server. 2014-04-10 11:58:17 +02:00
test [FIX] base: support float rounding with rounding_method=UP (ceiling) 2014-10-22 14:28:22 +02:00
tests [FIX] ir_model: invalidate cache when adding new fields 2014-08-21 17:24:45 +02:00
__init__.py Remove OpenERP Enterprise. 2012-08-22 11:58:23 +05:30
__openerp__.py [MERGE] auth password wizard 2012-12-20 18:10:38 +01:00
base.sql [FIX] orm,registry: properly check m2o FKs during model update + fix some models `auto_init`ed multiple times 2012-12-17 22:46:45 +01:00
base_data.xml [FIX] Remove additional company assignments to currencies 2013-05-29 12:35:03 +02:00
base_demo.xml [MERGE] trunk-acl-thu (check read/write access restrictions on fields with a groups attribute) 2012-12-17 11:15:28 +01:00
base_menu.xml [FIX] open menu 2012-09-16 16:47:45 +02:00
currency_data.xml [FIX] base: invalid ISO code for former Venezuela bolivar - ISO 4217 says VEB 2013-11-15 00:05:08 +01:00