[FIX] Product : method of functional field corrected which was breaking pricelist...
authorRME(OpenERP) <>
Thu, 30 Dec 2010 05:28:58 +0000 (10:58 +0530)
committerJay (OpenERP) <jvo@tinyerp.com>
Thu, 30 Dec 2010 05:28:58 +0000 (10:58 +0530)
lp bug: https://launchpad.net/bugs/690676 fixed

bzr revid: jvo@tinyerp.com-20101230052858-4ikslibefw8ak8o0

addons/product/product.py

index 80c4653..fcd2b72 100644 (file)
@@ -350,7 +350,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', 1) or 1.0
         pricelist = context.get('pricelist', False)
         if pricelist:
             for id in ids: