[FIX] product: avoid getting date=False in pricelist if wrong value in context, courtesy of Alexis de Lattre
bzr revid: mat@openerp.com-20130920144529-800nviktzebexwtt
This commit is contained in:
commit
2a6419ea55
|
@ -173,9 +173,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')
|
||||
|
|
Loading…
Reference in New Issue