Don't fail on on stock_date_end == None.

issue4695
review14211002
This commit is contained in:
committed 2015-04-07 14:50:28 +02:00
1 parent c7ee27bdfd
commit 50278d7ecb
1 file changed
+1 -1
+1 -1
View File
@@ -215,7 +215,7 @@ class Move:
context = Transaction().context
today = Date.today()
stock_date_end = context.get('stock_date_end', datetime.date.max)
stock_date_end = context.get('stock_date_end') or datetime.date.max
if query and ((stock_date_end == today and context.get('forecast'))
or stock_date_end > today):
lot = Lot.__table__()