[FIX] product: if 'date' is passed as False in context of price_get_multi(), it shoul...
[odoo/odoo.git] / addons / product / pricelist.py
index 4b59856..271c2b7 100644 (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')