Add ability to put a key in ctx to disable generation of a price history line
This commit is contained in:
@@ -42,6 +42,7 @@ class ProductTemplate(orm.Model):
|
||||
retrieve the cost of a product template for a given date'''
|
||||
if context is None:
|
||||
context = {}
|
||||
if not context.get('dont_create_price_history'):
|
||||
price_history_obj = self.pool['product.price.history']
|
||||
user_company = self.pool['res.users'].browse(
|
||||
cr, uid, uid, context=context).company_id.id
|
||||
|
||||
Reference in New Issue
Block a user