Skip to content

Commit

Permalink
[MIG] fieldservice_fleet: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 committed Nov 2, 2020
1 parent 9953a9e commit b294bad
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fieldservice_fleet/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Field Service Fleet",
"summary": "Link Field Service vehicles with Odoo Fleet",
"version": "12.0.1.0.1",
"version": "13.0.1.0.0",
"category": "Field Service",
"author": "Brian McMaster, "
"Open Source Integrators, "
Expand Down
1 change: 0 additions & 1 deletion fieldservice_fleet/models/fsm_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def create(self, vals):
vals["is_fsm_vehicle"] = True
return super().create(vals)

@api.multi
def write(self, vals):
# update fsm.vehicle worker based on the fleet.vehicle driver
if "driver_id" in vals:
Expand Down
2 changes: 1 addition & 1 deletion fieldservice_fleet/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
To install Field Service and have the mapping features, you need to install GeoEngine.

Please refer to the installation instructions available at:
https://github.com/OCA/geospatial/tree/12.0/base_geoengine
https://github.com/OCA/geospatial/tree/13.0/base_geoengine
3 changes: 1 addition & 2 deletions fieldservice_fleet/wizard/fsm_fleet_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2019 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import _, api, models
from odoo import _, models
from odoo.exceptions import UserError


Expand All @@ -14,7 +14,6 @@ class FSMFleetWizard(models.TransientModel):
_name = "fsm.fleet.wizard"
_description = "FSM Fleet Vehicle Conversion"

@api.multi
def action_convert(self):
vehicles = self.env["fleet.vehicle"].browse(self._context.get("active_ids", []))
for vehicle in vehicles:
Expand Down
4 changes: 1 addition & 3 deletions fieldservice_fleet/wizard/fsm_fleet_wizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
id="vehicle_fsm_action"
name="Convert to FSM Vehicle"
res_model="fsm.fleet.wizard"
src_model="fleet.vehicle"
view_type="form"
binding_model="fleet.vehicle"
view_mode="form"
target="new"
key2="client_action_multi"
groups="fieldservice.group_fsm_dispatcher"
/>
<!-- wizard view -->
Expand Down
1 change: 1 addition & 0 deletions setup/fieldservice_fleet/odoo/addons/fieldservice_fleet
6 changes: 6 additions & 0 deletions setup/fieldservice_fleet/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit b294bad

Please sign in to comment.