Test stock_date_end in context before comparing with today
This commit is contained in:
1 parent
329ab52fbc
commit
8cd9edde5d
1 file changed
+1
@@ -72,6 +72,7 @@ class Product(ModelSQL, ModelView):
|
||||
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):
|
||||
|
||||
|
||||
Reference in new issue
Block a user