[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
committed by Ruchir Shukla
parent 4490e053fb
commit 01bdae6711

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