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:
Cédric Krier
2026-01-29 10:26:59 +01:00
parent ef83aa44c0
commit 08ad05d005
+1 -1
View File
@@ -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: