diff options
| author | Pierre Masereel <pim@odoo.com> | 2018-10-24 08:01:29 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2018-10-29 10:49:24 +0000 |
| commit | da2abe6a2c00e6313aa55c9be8a86a555be91433 (patch) | |
| tree | 3aacbf75ede1c9e96db36cad810bae6349cae0d0 /addons/procurement_jit | |
| parent | d5c31e231aecc130b695f914441a6c6d29b02f0a (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.
Diffstat (limited to 'addons/procurement_jit')
| -rw-r--r-- | addons/procurement_jit/sale.py | 1 |
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 |
