From 4f30a5324ff7537b5794f458277d981fd1f16e47 Mon Sep 17 00:00:00 2001 From: Bernat Puig Font Date: Mon, 7 Feb 2022 12:49:24 +0100 Subject: [PATCH] [15.0][FIX] mrp_progress_button: Fix unstart functionality --- mrp_progress_button/models/mrp_production.py | 7 +------ mrp_progress_button/views/production.xml | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/mrp_progress_button/models/mrp_production.py b/mrp_progress_button/models/mrp_production.py index 7bf0b27ff..d973ab354 100644 --- a/mrp_progress_button/models/mrp_production.py +++ b/mrp_progress_button/models/mrp_production.py @@ -20,10 +20,5 @@ class MrpProduction(models.Model): return True def action_unstart(self): - self.write( - { - "state": "confirmed", - "date_start": False, - } - ) + self.write({"state": "confirmed", "date_start": False, "qty_producing": 0}) return True diff --git a/mrp_progress_button/views/production.xml b/mrp_progress_button/views/production.xml index 48efd9541..a64a65ec1 100644 --- a/mrp_progress_button/views/production.xml +++ b/mrp_progress_button/views/production.xml @@ -5,7 +5,7 @@ mrp.production -