From 88d2e8b5301aadca2355031a3c80a82358c82f68 Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Tue, 2 Nov 2010 10:59:14 +0530 Subject: [PATCH] [FIX]: product: Fixed problem of loading list of products in m2o of purchase line after setting qty and uom as zero and False respectively bzr revid: rpa@tinyerp.com-20101102052914-q03vwvbfse2a97uk --- addons/product/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index b43f40b1cbc..b05b7b2887c 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -342,7 +342,7 @@ class product_product(osv.osv): def _product_price(self, cr, uid, ids, name, arg, context={}): res = {} - quantity = context.get('quantity', 1) + quantity = context.get('quantity') or 1.0 pricelist = context.get('pricelist', False) if pricelist: for id in ids: