summaryrefslogtreecommitdiff
path: root/addons/procurement_jit
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2017-09-14 13:45:27 -0700
committeramoyaux <arm@odoo.com>2017-09-20 15:08:30 +0200
commit6e931e4e3cf2de8d1cdc203f3f0b4053788b5985 (patch)
tree672fcd9eb761d35e2e7aba71a813bf6775fc1acf /addons/procurement_jit
parentbada5a73002cdfa87accce1d9a860b86df8a6f08 (diff)
[IMP] stock: simplify stock.picking states
Remove 'partially_available'. This particular state is now also represented by the 'assigned' state.
Diffstat (limited to 'addons/procurement_jit')
-rw-r--r--addons/procurement_jit/sale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/procurement_jit/sale.py b/addons/procurement_jit/sale.py
index cf921fd88d8..ae6023e74b5 100644
--- a/addons/procurement_jit/sale.py
+++ b/addons/procurement_jit/sale.py
@@ -12,7 +12,7 @@ class SaleOrderLine(models.Model):
res = super(SaleOrderLine, self)._action_launch_procurement_rule()
orders = list(set(x.order_id for x in self))
for order in orders:
- reassign = order.picking_ids.filtered(lambda x: x.state=='confirmed' or ((x.state in ['partially_available', 'waiting']) and not x.printed))
+ 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()