From 1df2d9e4db4c94b396c088c8ed04d6524f3315a2 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Fri, 18 Oct 2013 14:20:34 +0200 Subject: [PATCH] [FIX] stock: picking assignation now accept draft picking as well. This is hardly needed because picking state is based on stock.move state, and at the time of picking creation from a PO, we won't confirm the stock.move one by one (so the picking state stays draft untill all moves are confirmed) bzr revid: qdp-launchpad@openerp.com-20131018122034-fpj8sgi4sh1n7vsw --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 0ccc19799ca..8cbe8307f15 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1591,7 +1591,7 @@ class stock_move(osv.osv): ('group_id', '=', group), ('location_id', '=', move.location_id.id), ('location_dest_id', '=', move.location_dest_id.id), - ('state', 'in', ['confirmed', 'waiting'])], context=context) + ('state', 'in', ['draft', 'confirmed', 'waiting'])], context=context) if picks: pick = picks[0] else: