From 01bdae67110d7d99abe0d324ec51c5c699d1314d Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Thu, 4 Nov 2021 19:48:03 +0000 Subject: [PATCH] [FIX] mrp_account_analytic: workorder start/stop timer does not generate costs --- mrp_account_analytic/models/mrp_workorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_account_analytic/models/mrp_workorder.py b/mrp_account_analytic/models/mrp_workorder.py index ce3cbcedf..a581b494f 100644 --- a/mrp_account_analytic/models/mrp_workorder.py +++ b/mrp_account_analytic/models/mrp_workorder.py @@ -40,7 +40,7 @@ class MrpWorkcenterProductivity(models.Model): return timelog def write(self, vals): + res = super().write(vals) if vals.get("date_end"): self.generate_mrp_work_analytic_line() - res = super().write(vals) return res