summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2020-03-05 09:57:59 +0000
committerArnold Moyaux <arm@odoo.com>2020-03-13 15:25:19 +0000
commit343e46d97f63efdee00f941be9c5e5f8ff66f793 (patch)
tree7e3eb8121716b6cf2d5cc02b14ebf692bfa5c6d7 /requirements.txt
parent522c2c6fab2a70f683a939f159acef212566d55a (diff)
[FIX] mrp: modify linked move remove quantity done
- create product comp1 - create product finished1 - created bom: 1 comp1 for 1 finished1 - activate PBM - 100 units of comp1 in stock - create an MO for 5 - on the pbm, deliver 3 and no backorder - on the mo, check availability, produce 3 - on the pbm, unlock, change delivered qty from 3 to 5 On the mo, the raw move is reserved to 5 units but the 3 units used in the first produce are removed. It happens because editing the quantity or initial on a move will try to reserve the next moves. In order to reserved, _do_unreserve will destroy the stock.move.line and _action_assign (call just after) will recreate them in order to regenerate the reservation. In the process the qty_done on the stock.move.line will be loss. We want to avoid this behavior in mrp so we call _decrease_reserved_quantity from mrp that will keep stock.move.line with quantity done. opw-2206472 closes odoo/odoo#47617 X-original-commit: c6cf5841015c87163f8ea16dd75232e5cb855df6 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'requirements.txt')
0 files changed, 0 insertions, 0 deletions