diff options
| author | Debauche Stéphane <std@odoo.com> | 2019-12-05 12:09:06 +0000 |
|---|---|---|
| committer | Debauche Stéphane <std@odoo.com> | 2019-12-10 16:13:29 +0000 |
| commit | f21b696c6e837c3807168ced990a28f1d51b87e9 (patch) | |
| tree | 6adb56454bf3086e208234326d50f122281d1fba /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 39872c93245c1566b06d08509208824815507609 (diff) | |
[IMP] sale_stock_margin: improve the margin computation
Before
======
The margin stay unchanged after the validation of the delivery.
After
=====
The margin is updated when the delivery is validated.
To compute the margin for FIFO products, we use the value in the stock valuation layer as ``standard_price``.
e.g.:
IN 1 product @ 10
IN 2 product @ 20
SO 4 products @ 40
After delivery validation (after stock move creation), the margin is
(40 * 4 - 10 - 20 - 20 - 20)
Task #2038418
closes odoo/odoo#41381
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
