From 1c3c640ca2aaf57d18e9b283fbb201d6ae92b069 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Fri, 28 Feb 2014 18:32:57 +0100 Subject: [PATCH] [FIX] stock: prefered and fallback domain aren't used anymore in action_Assign bzr revid: qdp-launchpad@openerp.com-20140228173257-4mguyrw0l23965o2 --- 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 5c57a14ad97..d78753d648c 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1917,7 +1917,7 @@ class stock_move(osv.osv): if move.state != 'assigned': qty_already_assigned = move.reserved_availability qty = move.product_qty - qty_already_assigned - quants = quant_obj.quants_get_prefered_domain(cr, uid, move.location_id, move.product_id, qty, domain=main_domain[move.id], prefered_domain=prefered_domain[move.id], fallback_domain=fallback_domain[move.id], restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context) + quants = quant_obj.quants_get_prefered_domain(cr, uid, move.location_id, move.product_id, qty, domain=main_domain[move.id], prefered_domain=[], fallback_domain=[], restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context) quant_obj.quants_reserve(cr, uid, quants, move, context=context) #force assignation of consumable products and picking type auto_force_assign