Skip to content

Commit

Permalink
[MIG] fieldservice_sale_recurring: to v16
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 committed Dec 18, 2024
1 parent 5d21987 commit 7ed949e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fieldservice_sale_recurring/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
4 changes: 3 additions & 1 deletion fieldservice_sale_recurring/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7ed949e

Please sign in to comment.