[IMP] stock: incoming stock.moves from a supplier location should be assigned automatically

bzr revid: odo@openerp.com-20100903165658-mllymlj50r35xeke
This commit is contained in:
Olivier Dony
2010-09-03 18:56:58 +02:00
parent fed8a6838f
commit 23052ece49
+1 -1
View File
@@ -1752,7 +1752,7 @@ class stock_move(osv.osv):
if context is None:
context = {}
for move in self.browse(cr, uid, ids, context=context):
if move.product_id.type == 'consu':
if move.product_id.type == 'consu' or move.location_id.usage == 'supplier':
if move.state in ('confirmed', 'waiting'):
done.append(move.id)
pickings[move.picking_id.id] = 1