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)]