[FIX] product: if 'date' is passed as False in context of price_get_multi(), it shoul...
authorAlexis de Lattre <>
Fri, 17 May 2013 06:31:45 +0000 (12:01 +0530)
committerRavi Gohil (OpenERP) <rgo@tinyerp.com>
Fri, 17 May 2013 06:31:45 +0000 (12:01 +0530)
lp bug: https://launchpad.net/bugs/1175983 fixed

bzr revid: rgo@tinyerp.com-20130517063145-va41paqq3pw38x51

addons/product/pricelist.py

index 4b59856..98a6239 100644 (file)
@@ -152,7 +152,7 @@ class product_pricelist(osv.osv):
             context = {}
 
         date = time.strftime('%Y-%m-%d')
-        if 'date' in context:
+        if 'date' in context and context['date']:
             date = context['date']
 
         currency_obj = self.pool.get('res.currency')