diff options
| author | len-odoo <len@odoo.com> | 2018-11-23 13:36:55 +0000 |
|---|---|---|
| committer | len-odoo <len@odoo.com> | 2018-11-26 12:56:23 +0000 |
| commit | 8db7d70776a276d153d62708c9b703b0b756dae6 (patch) | |
| tree | 3d92cf0d82df065ee609051bc4bf4a852bec2ea3 /addons/web/static/src/js/fields/relational_fields.js | |
| parent | 09f24de5d3340ac32312ac654bc4803ce4042817 (diff) | |
[FIX] mrp: do not lose done quantities when updating the quantity to do of a MO
Suppose you have a workorder to create n units of product P,
using raw material R (suppose we use one for one, the following can be extended
to any number of raw materials and factors in a straightforward manner).
Produce j < n units of P. Next, update the quantity to produce to j < k < n.
Since any number m of units between j and n may already have been reserved,
in particular values such that m > k, the move will unreserve the material R.
However, while doing so it will unlink the move_lines, and lose the
quantity_done (j).
The newly created move lines have a quantity_done of zero by default.
Therefore, we store in a dictionary the quantities done for each move line,
and reset these values once the unreservation/reservation of k units is done.
opw 1911969
closes odoo/odoo#28990
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions
