Don't fail on on stock_date_end == None.
issue4695 review14211002
This commit is contained in:
1 parent
c7ee27bdfd
commit
50278d7ecb
1 file changed
+1
-1
@@ -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__()
|
||||
|
||||
Reference in new issue
Block a user