[FIX] procurement_jit: do not unreserve picking
When a quantity is increased in SO, the related picking is unreserved then re-assigned, we can just call assign, as we don't want to lose what has already been done in the picking. As the decreased quantity on SO is not propagated on move, not unreserving won't cause trouble.
This commit is contained in:
@@ -14,6 +14,5 @@ class SaleOrderLine(models.Model):
|
||||
for order in orders:
|
||||
reassign = order.picking_ids.filtered(lambda x: x.state=='confirmed' or (x.state in ['waiting', 'assigned'] and not x.printed))
|
||||
if reassign:
|
||||
reassign.do_unreserve()
|
||||
reassign.action_assign()
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user