diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 4b59856b6d8..0e25be6fab3 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -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')