[FIX] stock: prefered and fallback domain aren't used anymore in action_Assign

bzr revid: qdp-launchpad@openerp.com-20140228173257-4mguyrw0l23965o2
This commit is contained in:
Quentin (OpenERP) 2014-02-28 18:32:57 +01:00
parent 3b6d4d5eff
commit 1c3c640ca2
1 changed files with 1 additions and 1 deletions

View File

@ -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