From 1225c8b530415360e95afa44da7cc82457fd1b88 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 18 Mar 2014 16:14:56 +0100 Subject: [PATCH] [FIX] purchase: for drop shipping po, the supplier of the picking was the customer address, which is obviously wrong, it should be the supplier of the po bzr revid: dle@openerp.com-20140318151456-qw896i1t55wgwhkm --- addons/purchase/purchase.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 8102ef6b469..344da2e70a6 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -633,10 +633,9 @@ class purchase_order(osv.osv): 'name': self.pool.get('ir.sequence').get(cr, uid, 'stock.picking.in'), 'origin': order.name + ((order.origin and (':' + order.origin)) or ''), 'date': self.date_to_datetime(cr, uid, order.date_order, context), - 'partner_id': order.dest_address_id.id or order.partner_id.id, + 'partner_id': order.partner_id.id, 'invoice_state': '2binvoiced' if order.invoice_method == 'picking' else 'none', 'type': 'in', - 'partner_id': order.dest_address_id.id or order.partner_id.id, 'purchase_id': order.id, 'company_id': order.company_id.id, 'move_lines' : [],