diff options
| author | Arnold Moyaux <arm@odoo.com> | 2017-11-13 16:05:45 +0100 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2017-11-13 17:32:22 +0100 |
| commit | 8900dc22048d460b44b6b308f88f2737cac5b4ba (patch) | |
| tree | 0f1df5bcd5d8bcdb43fe0cd42b597d2bbd95e909 /doc/reference/javascript.rst | |
| parent | 186ae1c288450aca87cdc97e08930fa0d826760b (diff) | |
[FIX] stock: backorder uom issue
Use case to reproduce:
- Sell 1.1 unit
- Validate the picking with 1 unit
- With or without backorder the initial demand is 0.999
- The backorder initial demand is 0.101
It happens because _compute_quantites uses 'UP' by
default. Since 1.1 - 1.0 equals 0.10000000000000009
we face the problem.
This commit uses an 'HALF-UP' instead. It should not generate
any problem since float_compare in order to decide if we need
a back order or not use a float_round on the same precision_digits
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions
