Skip to content

Commit

Permalink
Merge PR #363 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Oct 3, 2023
2 parents 9e24778 + a74784b commit 9488fb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maintenance_request_repair/models/repair_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def action_view_maintenance_request(self):
of given repair order ids. When only one found, show the maintenance request
immediately.
"""
action = self.env.ref("maintenance.hr_equipment_request_action")
result = action.read()[0]
result = self.env["ir.actions.act_window"]._for_xml_id(
"maintenance.hr_equipment_request_action"
)
# override the context to get rid of the default filtering on repair order
result["context"] = {"default_repair_order_id": self.id}
maintenance_request_ids = self.mapped("maintenance_request_ids")
Expand Down

0 comments on commit 9488fb8

Please sign in to comment.