diff --git a/maintenance.py b/maintenance.py index 54c7bde..d1c8070 100644 --- a/maintenance.py +++ b/maintenance.py @@ -302,7 +302,7 @@ class Maintenance(Workflow, ModelSQL, ModelView): def view_attributes(cls): return super(Maintenance, cls).view_attributes() + [ ('//page[@id="preventive"]', 'states', { - 'invisible': If(Eval('maintenance_type') != 'preventive', True), + 'invisible': If(Eval('maintenance_type') == 'corrective', True), }), ('//page[@id="corrective"]', 'states',{ 'invisible': If(Eval('maintenance_type') != 'corrective', True), diff --git a/view/maintenance_service_tree.xml b/view/maintenance_service_tree.xml index 31cff98..4ac657e 100644 --- a/view/maintenance_service_tree.xml +++ b/view/maintenance_service_tree.xml @@ -3,6 +3,7 @@ this repository contains the full copyright notices and license terms.--> +