From 7ed949e694b23052e8647cb1d36ef1939faa83bc Mon Sep 17 00:00:00 2001 From: Brian McMaster Date: Wed, 13 Dec 2023 10:27:08 -0500 Subject: [PATCH] [MIG] fieldservice_sale_recurring: to v16 --- fieldservice_sale_recurring/__manifest__.py | 2 +- fieldservice_sale_recurring/models/sale_order.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fieldservice_sale_recurring/__manifest__.py b/fieldservice_sale_recurring/__manifest__.py index c5fb7e5395..979f76111f 100644 --- a/fieldservice_sale_recurring/__manifest__.py +++ b/fieldservice_sale_recurring/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Field Service - Sales - Recurring", - "version": "15.0.3.0.0", + "version": "16.0.1.0.0", "summary": "Sell recurring field services.", "category": "Field Service", "author": "Open Source Integrators, Odoo Community Association (OCA)", diff --git a/fieldservice_sale_recurring/models/sale_order.py b/fieldservice_sale_recurring/models/sale_order.py index aace966e72..96cafdf752 100644 --- a/fieldservice_sale_recurring/models/sale_order.py +++ b/fieldservice_sale_recurring/models/sale_order.py @@ -27,7 +27,9 @@ def _compute_fsm_recurring_ids(self): def action_view_fsm_recurring(self): fsm_recurrings = self.mapped("fsm_recurring_ids") - action = self.env.ref("fieldservice_recurring.action_fsm_recurring").read()[0] + action = self.env["ir.actions.act_window"]._for_xml_id( + "fieldservice_recurring.action_fsm_recurring" + ) if len(fsm_recurrings) > 1: action["domain"] = [("id", "in", fsm_recurrings.ids)] elif len(fsm_recurrings) == 1: