[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:
Pierre Masereel
2018-10-29 10:49:24 +00:00
parent d5c31e231a
commit da2abe6a2c
-1
View File
@@ -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