[IMP] Do prepare partial should not give default location of picking type, but of picking

bzr revid: jco@openerp.com-20140404113436-sb188wlqz8g5m5na
This commit is contained in:
Josse Colpaert 2014-04-04 13:34:36 +02:00
parent 10f073edf1
commit e175a4b00b
1 changed files with 1 additions and 1 deletions

View File

@ -1021,7 +1021,7 @@ class stock_picking(osv.osv):
product_putaway_strats[product.id] = putaway_strat
if putaway_strat:
location = self._picking_putaway_resolution(cr, uid, picking, product, putaway_strat, context=context)
return location or picking.picking_type_id.default_location_dest_id.id or picking.location_dest_id.id
return location or picking.location_dest_id.id
pack_obj = self.pool.get("stock.quant.package")
quant_obj = self.pool.get("stock.quant")