Do not return None for duration_to_invoice on effort
The method must always return a timedelta or no values because it is summed later by sum_tree. issue6346 review31171002
This commit is contained in:
1 parent
02ffadabca
commit
d7914bfd53
1 file changed
+1
-1
@@ -143,7 +143,7 @@ class Work:
|
||||
@staticmethod
|
||||
def _get_duration_to_invoice_effort(works):
|
||||
return dict((w.id, w.effort_duration) for w in works
|
||||
if w.state == 'done' and not w.invoice_line)
|
||||
if w.state == 'done' and not w.invoice_line and w.effort_duration)
|
||||
|
||||
@staticmethod
|
||||
def _get_duration_to_invoice_progress(works):
|
||||
|
||||
Reference in new issue
Block a user