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:
6ed5b04
)
[FIX] product: check if context is none in _set_standard_price before check context...
author
Christophe Matthieu
<chm@odoo.com>
Mon, 2 Jun 2014 13:48:24 +0000
(15:48 +0200)
committer
Christophe Matthieu
<chm@odoo.com>
Mon, 2 Jun 2014 13:48:24 +0000
(15:48 +0200)
addons/product/product.py
patch
|
blob
|
history
diff --git
a/addons/product/product.py
b/addons/product/product.py
index
2369db4
..
a7a6b1a
100644
(file)
--- a/
addons/product/product.py
+++ b/
addons/product/product.py
@@
-458,6
+458,8
@@
class product_template(osv.osv):
def _set_standard_price(self, cr, uid, product_tmpl_id, value, context=None):
''' Store the standard price change in order to be able to retrieve the cost of a product template for a given date'''
+ if context is None:
+ context = {}
price_history_obj = self.pool['product.price.history']
user_company = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
company_id = context.get('force_company', user_company)