From 9da746b95a7d30aef4ac3acad93ef4f430af1bb8 Mon Sep 17 00:00:00 2001 From: Hafizh Ibnu Syam Date: Mon, 9 Sep 2024 14:16:13 +0700 Subject: [PATCH] Update context and domain filters to use active_id Refactored the context and domain in maintenance plan views to use `active_id` instead of `id`. --- maintenance_plan/views/maintenance_plan_views.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance_plan/views/maintenance_plan_views.xml b/maintenance_plan/views/maintenance_plan_views.xml index d9c869f71..b115c4b66 100644 --- a/maintenance_plan/views/maintenance_plan_views.xml +++ b/maintenance_plan/views/maintenance_plan_views.xml @@ -6,9 +6,9 @@ kanban,tree,form,pivot,graph,calendar { - 'default_maintenance_plan_id': id, + 'default_maintenance_plan_id': active_id, } - [('maintenance_plan_id', '=', id)] + [('maintenance_plan_id', '=', active_id)] maintenance.plan.form @@ -188,10 +188,10 @@ tree,form { - 'default_equipment_id': id, 'hide_equipment_id': 0 + 'default_equipment_id': active_id, 'hide_equipment_id': 0 } ['|', ('active', '=', True), ('active', '=', - False), ('search_equipment_id', '=', id)] + False), ('search_equipment_id', '=', active_id)]