[FIX] mrp_account_analytic: workorder start/stop timer does not generate costs

This commit is contained in:
Daniel Reis
2021-11-04 19:48:03 +00:00
parent 51334564e6
commit bd27f59f58

View File

@@ -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