diff --git a/fieldservice_activity/__manifest__.py b/fieldservice_activity/__manifest__.py index 71ecfcbbcf..5deb64fb72 100644 --- a/fieldservice_activity/__manifest__.py +++ b/fieldservice_activity/__manifest__.py @@ -5,7 +5,7 @@ "name": "Field Service Activity", "summary": """Field Service Activities are a set of actions that need to be performed on a service order""", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Field Service", "license": "AGPL-3", "author": "Open Source Integrators, Odoo Community Association (OCA)", diff --git a/fieldservice_activity/models/fsm_activity.py b/fieldservice_activity/models/fsm_activity.py index a7fee4914d..52ebccd230 100644 --- a/fieldservice_activity/models/fsm_activity.py +++ b/fieldservice_activity/models/fsm_activity.py @@ -6,7 +6,7 @@ from odoo import fields, models -class FSMActiity(models.Model): +class FSMActivity(models.Model): _name = "fsm.activity" _description = "Field Service Activity" @@ -35,13 +35,11 @@ class FSMActiity(models.Model): default="todo", ) - @api.multi def action_done(self): self.completed = True self.completed_on = datetime.now() self.completed_by = self.env.user self.state = "done" - @api.multi def action_cancel(self): self.state = "cancel" diff --git a/fieldservice_activity/models/fsm_order.py b/fieldservice_activity/models/fsm_order.py index e8d4389016..a642b58eac 100644 --- a/fieldservice_activity/models/fsm_order.py +++ b/fieldservice_activity/models/fsm_order.py @@ -10,7 +10,6 @@ class FSMOrder(models.Model): order_activity_ids = fields.One2many("fsm.activity", "fsm_order_id", "Activites") - @api.multi @api.onchange("template_id") def _onchange_template_id(self): res = super()._onchange_template_id() @@ -34,7 +33,6 @@ def _onchange_template_id(self): rec.template_id.temp_activity_ids.write({"fsm_template_id": False}) return res - @api.multi def action_complete(self): res = super().action_complete() for activity_id in self.order_activity_ids: