From 64c80ddb4ac338b47d40c95f699cb61649966c92 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 25 Jul 2016 16:31:14 +0200 Subject: [PATCH] [FIX] product: add missing argument in read The list of fields was not present, making the call to fail. Closes #11716 --- addons/product/report/product_pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/report/product_pricelist.py b/addons/product/report/product_pricelist.py index 6a49250734f..dd490abc52d 100644 --- a/addons/product/report/product_pricelist.py +++ b/addons/product/report/product_pricelist.py @@ -109,7 +109,7 @@ class product_pricelist(report_sxw.rml_parse): if price_dict[pricelist_id]: price = float_round(price_dict[pricelist_id], precision_digits=sale_price_digits) else: - res = self.pool.get('product.product').read(self.cr, self.uid, [product_id]) + res = self.pool.get('product.product').read(self.cr, self.uid, [product_id], ['list_price']) price = float_round(res[0]['list_price'], precision_digits=sale_price_digits) price = self.formatLang(price, digits=sale_price_digits, currency_obj=pricelist.currency_id) return price