mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] mrp_account_analytic: workorder start/stop timer does not generate costs
This commit is contained in:
committed by
Ruchir Shukla
parent
4490e053fb
commit
01bdae6711
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user