diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-08-22 15:27:41 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-08-23 09:20:40 +0000 |
| commit | 15245a4f1f3bf17c1086646aa3817321ef284f52 (patch) | |
| tree | 29b12342110bc4d654ce204db893d65c1bd12175 /doc/reference/javascript_reference.rst | |
| parent | 7903dd8e6464f53490ce816cd2c1c3bb551dfaa9 (diff) | |
[REF] stock_account: fifo rounding
Reintroduce remaining_value on the valuation layer. We thought we could
get rid of it and only use unit_cost but with tricky receipt value such
as 10 for three units it works indeed better.
Increment remaining_value when applying a landed cost, don't use this
field anywhere else than _run_fifo. It's a shame we have to edit in
place the value of a layer while we were able to keep them as they were
everywhere else...
There still an imprecision sometimes due to the representation of float
and their way through currency.round (see test_rounding_2) so we also
call currency.round on the computed field value_svl to get a real 0
value.
task-2057877
closes odoo/odoo#36013
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
