[FIX] purchase: picking should be created with the supplier as partner
bzr revid: qdp-launchpad@openerp.com-20140214150637-xcebrk8ogodtw5g4
This commit is contained in:
@@ -784,7 +784,7 @@ class purchase_order(osv.osv):
|
||||
|
||||
def action_picking_create(self, cr, uid, ids, context=None):
|
||||
for order in self.browse(cr, uid, ids):
|
||||
picking_id = self.pool.get('stock.picking').create(cr, uid, {'picking_type_id': order.picking_type_id.id}, context=context)
|
||||
picking_id = self.pool.get('stock.picking').create(cr, uid, {'picking_type_id': order.picking_type_id.id, 'partner_id': order.partner_id.id}, context=context)
|
||||
self._create_stock_moves(cr, uid, order, order.order_line, picking_id, context=context)
|
||||
|
||||
def picking_done(self, cr, uid, ids, context=None):
|
||||
|
||||
Reference in New Issue
Block a user