projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fe8e92
)
[FIX] Product : method of functional field corrected which was breaking pricelist...
author
RME(OpenERP)
<>
Thu, 30 Dec 2010 05:28:58 +0000
(10:58 +0530)
committer
Jay (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
patch
|
blob
|
history
diff --git
a/addons/product/product.py
b/addons/product/product.py
index
80c4653
..
fcd2b72
100644
(file)
--- a/
addons/product/product.py
+++ b/
addons/product/product.py
@@
-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: