diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2014-09-24 16:09:28 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-09-24 17:11:26 +0200 |
| commit | 311c77bb885d815aeb64ac5e89d3665f4c2dd172 (patch) | |
| tree | a2ab60ae6592e9e600517655662bfd8738f3fa4d /addons/analytic_user_function/analytic_user_function.py | |
| parent | d4972ffdb6b9356a524eef1dbc11f455ff4473f2 (diff) | |
[FIX] product: _compute_qty: first round before ceiling, to avoid pathological cases
Fixes problem when we try to sell 12 units of a product and change it to 1 dozen,
the algorithm was then trying to recompute the original amount and was getting
12,0000048 as a result which was then passed to the ceiling method, getting 13.0!
See also previous commit and issue #1125, PR #1126
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions
