Skip to content
Snippets Groups Projects
Commit caf4bf77 authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] product: check if context is none in _set_standard_price before check context keys

parent 6ed5b041
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment