[FIX] product: if 'date' is passed as False in context of price_get_multi(), it should be set to current date and not False (Maintenance Case: 592247)
lp bug: https://launchpad.net/bugs/1175983 fixed bzr revid: rgo@tinyerp.com-20130517065744-il8sfm61rlcu9h2f
This commit is contained in:
@@ -151,8 +151,8 @@ class product_pricelist(osv.osv):
|
||||
if context is None:
|
||||
context = {}
|
||||
|
||||
date = time.strftime('%Y-%m-%d')
|
||||
if 'date' in context:
|
||||
date = context.get('date') or time.strftime('%Y-%m-%d')
|
||||
if 'date' in context and context['date']:
|
||||
date = context['date']
|
||||
|
||||
currency_obj = self.pool.get('res.currency')
|
||||
|
||||
Reference in New Issue
Block a user