Skip to content

Commit

Permalink
[MIG] fieldservice_crm: 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 92b8496 commit fb598ac
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion fieldservice_crm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019 - TODAY, Patrick Wilson
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
4 changes: 2 additions & 2 deletions fieldservice_crm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright (C) 2019 - TODAY, Patrick Wilson
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Field Service - CRM",
"version": "12.0.1.1.0",
"version": "13.0.1.0.0",
"summary": "Create Field Service orders from the CRM",
"category": "Field Service",
"author": "Patrick Wilson, Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_crm/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019 - TODAY, Patrick Wilson
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import crm_lead
Expand Down
5 changes: 2 additions & 3 deletions fieldservice_crm/models/crm_lead.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2019 - TODAY, Patrick Wilson
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

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


class Lead(models.Model):
Expand All @@ -15,7 +15,6 @@ class Lead(models.Model):
compute="_compute_fsm_order_count", string="# FSM Orders"
)

@api.multi
def _compute_fsm_order_count(self):
for opportunity in self:
opportunity.fsm_order_count = self.env["fsm.order"].search_count(
Expand Down
5 changes: 2 additions & 3 deletions fieldservice_crm/models/fsm_location.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2019 - TODAY, Patrick Wilson
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

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


class FSMLocation(models.Model):
Expand All @@ -11,7 +11,6 @@ class FSMLocation(models.Model):
compute="_compute_opportunity_count", string="# Opportunities"
)

@api.multi
def _compute_opportunity_count(self):
for fsm_location in self:
fsm_location.opportunity_count = self.env["crm.lead"].search_count(
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_crm/models/fsm_order.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019 - TODAY, Patrick Wilson
# Copyright (C) 2019, Patrick Wilson
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_crm/views/crm_lead.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<record id="fieldservice_crm_form_view" model="ir.ui.view">
<field name="name">fieldservice.crm.form</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_oppor" />
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field eval="1" name="priority" />
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]" />
<field name="arch" type="xml">
Expand Down

0 comments on commit fb598ac

Please sign in to comment.