Skip to content

Commit

Permalink
[MIG] fieldservice_sale_recurring: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 committed Jul 20, 2020
1 parent b173780 commit 6fd47c9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 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": "12.0.1.1.0",
"version": "13.0.1.0.0",
"summary": "Sell recurring field services.",
"category": "Field Service",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
Expand Down
2 changes: 0 additions & 2 deletions fieldservice_sale_recurring/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class SaleOrder(models.Model):
string="FSM Recurring Orders", compute="_compute_fsm_recurring_ids"
)

@api.multi
@api.depends("order_line.product_id")
def _compute_fsm_recurring_ids(self):
for order in self:
Expand All @@ -26,7 +25,6 @@ def _compute_fsm_recurring_ids(self):
)
order.fsm_recurring_count = len(order.fsm_recurring_ids)

@api.multi
def action_view_fsm_recurring(self):
fsm_recurrings = self.mapped("fsm_recurring_ids")
action = self.env.ref("fieldservice_recurring.action_fsm_recurring").read()[0]
Expand Down
5 changes: 1 addition & 4 deletions fieldservice_sale_recurring/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import _, api, fields, models
from odoo import _, fields, models


class SaleOrderLine(models.Model):
Expand Down Expand Up @@ -35,7 +35,6 @@ def _field_create_fsm_recurring_prepare_values(self):
"company_id": self.company_id.id,
}

@api.multi
def _field_create_fsm_recurring(self):
""" Generate fsm_recurring for the given so line, and link it.
:return a mapping with the so line id and its linked fsm_recurring
Expand Down Expand Up @@ -71,7 +70,6 @@ def _field_create_fsm_recurring(self):
result[so_line.id] = fsm_recurring
return result

@api.multi
def _field_find_fsm_recurring(self):
""" Find the fsm_recurring generated by the so lines. If no
fsm_recurring linked, it will be created automatically.
Expand All @@ -98,7 +96,6 @@ def _field_find_fsm_recurring(self):
result[so_line.id] = fsm_recurring
return result

@api.multi
def _field_service_generation(self):
""" For service lines, create the field service order. If it already
exists, it simply links the existing one to the line.
Expand Down

0 comments on commit 6fd47c9

Please sign in to comment.