From c020ba8ddcbd079fdcc016176d466d1adacca4eb Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 29 Jul 2024 12:52:13 +0200 Subject: [PATCH] [IMP] mrp_component_operation: add active field --- .../models/mrp_component_operation.py | 1 + .../views/mrp_component_operation_views.xml | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/mrp_component_operation/models/mrp_component_operation.py b/mrp_component_operation/models/mrp_component_operation.py index 1ffeb7a59..783e5ab03 100644 --- a/mrp_component_operation/models/mrp_component_operation.py +++ b/mrp_component_operation/models/mrp_component_operation.py @@ -70,3 +70,4 @@ class MrpComponentOperation(models.Model): string="Sequence", help="Gives the sequence order when displaying the list of component operations", ) + active = fields.Boolean(default=True) diff --git a/mrp_component_operation/views/mrp_component_operation_views.xml b/mrp_component_operation/views/mrp_component_operation_views.xml index 91e553192..958174fb4 100644 --- a/mrp_component_operation/views/mrp_component_operation_views.xml +++ b/mrp_component_operation/views/mrp_component_operation_views.xml @@ -6,11 +6,18 @@
+

+ @@ -62,6 +69,23 @@ + + mrp.component.operation.search + mrp.component.operation + + + + + + + + + + Component Operation mrp.component.operation