Test stock_date_end in context before comparing with today

(transplanted from 25baf0c9daa6d35033b21ff41311384b43179833)
This commit is contained in:
Cédric Krier committed 2009-10-27 10:17:57 +01:00
1 parent dda6b3fe30
commit 968ca6393a
1 file changed
+1
+1
View File
@@ -40,6 +40,7 @@ class Product(OSV):
return dict([(id, 0.0) for id in ids])
if name == 'quantity' and \
context.get('stock_date_end') and \
context.get('stock_date_end') > \
date_obj.today(cursor, user, context=context):