summaryrefslogtreecommitdiff
path: root/addons/base_setup
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2017-12-28 15:55:49 +0100
committerSimon Lejeune <sle@openerp.com>2017-12-29 15:56:30 +0100
commit652f8746d6d1cc16bed1d388a4341f717c93dbcb (patch)
tree2ec2024b356e4091df3543c92595274ac2ec3a2c /addons/base_setup
parent88afd055cfc96f6505eec7547419ad96e37ab28d (diff)
[FIX] stock: state of DO for an MTO product
When confirming a quotation for an MTO product, the state of the delivery order goes from draft to waiting another operation to waiting while it should stays in waiting another operation. If procurement_jit is enabled, confirming a sale order line will unreserve and rereserve the pickings associated (see `action_launch_procurement_rule` override). Unreserving a picking will always set its state to "confirmed", which is wrong if it should be in "waiting another operation". Not writing on state (which is a computed field) and let the depends call _compute_state fixes the issue. The unreserve/rereserve thing is probably useless and is a remain of the previous stock implementation where it was not possible to complete the reservation of a move without wiping all its current reservation. Another commit will improve this part of the code. opw-801588
Diffstat (limited to 'addons/base_setup')
0 files changed, 0 insertions, 0 deletions