Skip to content

Commit 032594e

Browse files
committed
[MIG] maintenance_request_purchase: Migration to 13.0
1 parent f1b49f7 commit 032594e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

maintenance_request_purchase/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Maintenance Request Purchase",
66
"summary": """
77
Allows you to link PO with maintenance requests""",
8-
"version": "14.0.1.0.1",
8+
"version": "13.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/maintenance",

maintenance_request_purchase/models/purchase_order.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ def _compute_maintenance_requests_count(self):
2727
record.maintenance_requests_count = len(record.maintenance_request_ids.ids)
2828

2929
def action_view_maintenance_request(self):
30-
action = self.env["ir.actions.act_window"]._for_xml_id(
31-
"maintenance.hr_equipment_request_action"
32-
)
30+
action = self.env.ref("maintenance.hr_equipment_request_action")
31+
action = action.read()[0]
3332
if len(self.maintenance_request_ids) > 1:
3433
action["domain"] = [("id", "in", self.maintenance_request_ids.ids)]
3534
elif self.maintenance_request_ids:

0 commit comments

Comments
 (0)