Use create date to calculate production work duration without write date
Closes #14562 (grafted from f90bd352ada4554737726ae36878c3446bbdf588) --HG-- branch : 6.0
This commit is contained in:
@@ -348,7 +348,7 @@ class WorkCycle(Workflow, ModelSQL, ModelView):
|
||||
|
||||
def set_duration(self, now):
|
||||
if self.duration is None:
|
||||
self.duration = now - self.write_date
|
||||
self.duration = now - (self.write_date or self.create_date)
|
||||
|
||||
def set_cost(self):
|
||||
if self.cost is None:
|
||||
|
||||
Reference in New Issue
Block a user