Skip to content

Commit

Permalink
[FIX] maintenance_plan: Use 'active_id' instead of 'id' in action to …
Browse files Browse the repository at this point in the history
…fix error

The action 'hr_equipment_request_action_from_plan' failed because 'id' was not found. Replaced 'id' with 'active_id' to ensure the correct context value is used.
  • Loading branch information
BernatObrador committed Dec 17, 2024
1 parent 2414c9d commit ec9f751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maintenance_plan/views/maintenance_plan_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<field name="binding_model_id" ref="model_maintenance_plan" />
<field name="view_mode">kanban,tree,form,pivot,graph,calendar</field>
<field name="context">{
'default_maintenance_plan_id': id,
'default_maintenance_plan_id': active_id,
}</field>
<field name="domain">[('maintenance_plan_id', '=', id)]</field>
<field name="domain">[('maintenance_plan_id', '=', active_id)]</field>
</record>
<record id="maintenance_plan_view_form" model="ir.ui.view">
<field name="name">maintenance.plan.form</field>
Expand Down

0 comments on commit ec9f751

Please sign in to comment.