bugfix
authorqdp <>
Wed, 30 Apr 2008 05:13:00 +0000 (05:13 +0000)
committerqdp <>
Wed, 30 Apr 2008 05:13:00 +0000 (05:13 +0000)
bzr revid: qdp-0d9730695e608648473ca7656c11566b0ff00460

addons/product/pricelist.py

index 837ea3e..aabe028 100644 (file)
@@ -202,7 +202,7 @@ class product_pricelist(osv.osv):
                                                if res2:
                                                        price = res2['price']
                                else:
-                                       price_type = price_type_obj.browse(cr, uid, res['base'])
+                                       price_type = price_type_obj.browse(cr, uid, int(res['base']))
                                        price = currency_obj.compute(cr, uid,
                                                        price_type.currency_id.id, res['currency_id'],
                                                        product_obj.price_get(cr, uid, [prod_id],