summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2018-10-24 08:01:29 +0000
committerPierre Masereel <pim@odoo.com>2018-10-29 10:49:24 +0000
commitda2abe6a2c00e6313aa55c9be8a86a555be91433 (patch)
tree3aacbf75ede1c9e96db36cad810bae6349cae0d0
parentd5c31e231aecc130b695f914441a6c6d29b02f0a (diff)
[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.
-rw-r--r--addons/procurement_jit/sale.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/procurement_jit/sale.py b/addons/procurement_jit/sale.py
index b35cd0e606f..9ad3cf50b1d 100644
--- a/addons/procurement_jit/sale.py
+++ b/addons/procurement_jit/sale.py
@@ -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