diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-07-17 12:15:55 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2019-08-19 14:14:13 +0000 |
| commit | abc825344817941887cf66d314fe28d22e3739ca (patch) | |
| tree | 6024a2fd7c81fc4f41330ce1a224c40c1053fc6e /addons/mrp_subcontracting/data | |
| parent | 44507c039e2b8703f74bf9bd16b9202adca4387a (diff) | |
[FIX] mrp_subcontracting: extra move correctly handle.
Usecase to reproduce:
- Create a receipt of 1 units of a subcontracted product
- Receive 2
- Validate the receipt
-> An extra move for subcontractor of 1 has been validated but a
new move of 2 still in waiting availability and can not be
validated.
It happens due to action_done that will validate existing subcontract
order (with the initial quantity). Then the move is validated and an
extra move is created and merged in the first one. This new merged
move of 2 is then confirmed and validated. That will recreate a
subcontract order of 2 that will not be validated since it was validated
in the picking action_done at the start.
This commit will modify:
- action_done on move in order to validate the subcontract order after
the move validation and the new subcontract order creation too.
- action_confirm in order to create the subcontract order with the
additional quantity and then merge it to the existing moves.
Diffstat (limited to 'addons/mrp_subcontracting/data')
0 files changed, 0 insertions, 0 deletions
