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: