diff options
| author | William Henrotin <whe@odoo.com> | 2020-03-24 09:14:40 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2020-03-26 13:00:26 +0000 |
| commit | b6c629922d9ebf2d2fb0f52f13b1648c49bca36f (patch) | |
| tree | 4f173f86d907f38e50e8cc61f73e6685242e2937 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | a6d38439d590a4a9cfb02309a738f7550b10399b (diff) | |
[FIX] stock,mrp: change procure method at cancellation
Usecase : sell a mto/manufacture product. Confirm the sale order.
Cancel the delivery and the production then
duplicate the delivery.
- if the delivery was cancelled before the production, another
production is created.
- if the delivery was cancelled after the production, no other
production is created.
In the second case, the production cancellation will reset the procure
method of the delivery. The duplication will not trigger the mto
procurement.
This commit will override the procure method of each cancelled moves and
set it to `make_to_stock'. This way, we have the same behavior independently of the flow.
Task : 2212125
closes odoo/odoo#48366
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
