Do not convert empty grouped date when computing quantities
When there is a move without planned nor effective date, the computed date is None. issue11895 review418731005
This commit is contained in:
1 parent
648a3f19c7
commit
d36992057c
1 file changed
+1
-1
@@ -1569,7 +1569,7 @@ class Move(Workflow, ModelSQL, ModelView):
|
||||
key = list(line[1:-1])
|
||||
if 'date' in grouping:
|
||||
i = grouping.index('date')
|
||||
if not isinstance(key[i], datetime.date):
|
||||
if key[i] and not isinstance(key[i], datetime.date):
|
||||
key[i] = datetime.date.fromisoformat(key[i])
|
||||
key = tuple(key)
|
||||
quantity = line[-1]
|
||||
|
||||
Reference in new issue
Block a user