[FIX] product: if 'date' is passed as False in context of price_get_multi(), it shoul...
[odoo/odoo.git] / addons / product / pricelist.py
index 98a6239..0e25be6 100644 (file)
@@ -151,7 +151,7 @@ class product_pricelist(osv.osv):
         if context is None:
             context = {}
 
-        date = time.strftime('%Y-%m-%d')
+        date = context.get('date') or time.strftime('%Y-%m-%d')
         if 'date' in context and context['date']:
             date = context['date']