[IMP] mrp_progress_button: Unstart button and date_start field added

This commit is contained in:
Bernat Puig Font
2021-11-10 16:19:00 +01:00
parent 09230febd1
commit 8455e98f6b
4 changed files with 24 additions and 2 deletions

View File

@@ -18,3 +18,12 @@ class MrpProduction(models.Model):
}
)
return True
def action_unstart(self):
self.write(
{
"state": "confirmed",
"date_start": False,
}
)
return True