From ed6d9afecc7f48ba126034d627076f90c1e0f512 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 13 Aug 2015 12:09:13 +0200 Subject: [PATCH] [FIX] purchase: env['product.pricelist'].price_get expect a partner ID --- addons/purchase/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/stock.py b/addons/purchase/stock.py index bfd1d69c01d..950f5b591c0 100644 --- a/addons/purchase/stock.py +++ b/addons/purchase/stock.py @@ -171,7 +171,7 @@ class stock_move(osv.osv): pricelist_obj = self.pool.get("product.pricelist") pricelist = partner.property_product_pricelist_purchase.id price = pricelist_obj.price_get(cr, uid, [pricelist], - move.product_id.id, move.product_uom_qty, partner, { + move.product_id.id, move.product_uom_qty, partner.id, { 'uom': move.product_uom.id, 'date': move.date, })[pricelist]