From: Alexis de Lattre <> Date: Fri, 17 May 2013 07:02:10 +0000 (+0530) Subject: [FIX] product: if 'date' is passed as False in context of price_get_multi(), it shoul... X-Git-Tag: InsPy_master01~464^2~400^2 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=8a36d556038a40ddd14d634ce47d8cf748dddf04;p=odoo%2Fodoo.git [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 --- 8a36d556038a40ddd14d634ce47d8cf748dddf04 diff --cc addons/product/pricelist.py index 4b59856,0e25be6..271c2b7 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@@ -151,9 -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') - if 'date' in context and context['date']: - date = context['date'] currency_obj = self.pool.get('res.currency') product_obj = self.pool.get('product.product')