[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-20130517070210-0dno7syscybo0h7j
This commit is contained in:
Alexis de Lattre
2013-05-17 12:32:10 +05:30
committed by Ravi Gohil (OpenERP)
+1 -3
View File
@@ -151,9 +151,7 @@ class product_pricelist(osv.osv):
if context is None:
context = {}
date = time.strftime('%Y-%m-%d')
if 'date' in context:
date = context['date']
date = context.get('date') or time.strftime('%Y-%m-%d')
currency_obj = self.pool.get('res.currency')
product_obj = self.pool.get('product.product')