Skip to content

Commit

Permalink
[WIP][13.0][MIG] fieldservice
Browse files Browse the repository at this point in the history
  • Loading branch information
murtuzasaleh committed Mar 16, 2020
1 parent 5eefa14 commit c604185
Show file tree
Hide file tree
Showing 88 changed files with 3,017 additions and 3,521 deletions.
1 change: 1 addition & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
known_third_party=setuptools
40 changes: 8 additions & 32 deletions fieldservice/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Field Service
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github
:target: https://github.com/OCA/field-service/tree/12.0/fieldservice
:target: https://github.com/OCA/field-service/tree/13.0/fieldservice
:alt: OCA/field-service
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice
:target: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/264/12.0
:target: https://runbot.odoo-community.org/runbot/264/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -32,21 +32,6 @@ This module is the base of the Field Service application in Odoo.
.. contents::
:local:

Installation
============

As of version 12, you can install Field Service alone without mapping features.

To install Field Service and have the mapping features, you need to install GeoEngine.
GeoEngine requires you to have `PostGIS <http://postgis.net/>`_ installed and also
install two additional python libs:

* `Shapely <http://pypi.python.org/pypi/Shapely>`_
* `geojson <http://pypi.python.org/pypi/geojson>`_

Please refer to the installation instructions available at:
https://github.com/OCA/geospatial/tree/12.0/base_geoengine

Configuration
=============

Expand All @@ -68,15 +53,6 @@ comes pre-configured for use.
#. Select *Order* type to apply this stage to your orders.
#. Additonally, you can set a color for the stage.

You need to add attribute mention below with the tag <timeline> as base element.

* colors (optional): it allows to set certain specific colors if the expressed
condition (JS syntax) is met.
* custom_color (optional): it allows to set custom color for fsm.stages
example custom_color = "true". And there is minor condition to follow to
implement this as. Define any one stage color condition like
colors="#ffffff:stage_id=='New';"

Field Service Areas
~~~~~~~~~~~~~~~~~~~

Expand All @@ -89,12 +65,12 @@ are managed under an encompassing Region.
Setup a Territory
-----------------

#. Go to *Field Service > Configuration > Locations > Territories*
#. Go to Settings > Users & Companies > Territories*
#. Create or select a territory
#. Set the territory Name and description
#. Select or create a branch which this territory serves
#. Choose a type of zip, state, or country whichs defines the boundary used
#. Input a list of zip codes, states, or countries based on your desired
#. Choose a type of zip, country whichs defines the boundary used
#. Input a list of zip codes, countries based on your desired
configuration

Setup Branches, Districts, and Regions
Expand Down Expand Up @@ -205,7 +181,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/field-service/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -261,6 +237,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-wolfhall| |maintainer-max3903|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/12.0/fieldservice>`_ project on GitHub.
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/13.0/fieldservice>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 0 additions & 1 deletion fieldservice/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
Expand Down
107 changes: 48 additions & 59 deletions fieldservice/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,55 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Field Service',
'summary': 'Manage Field Service Locations, Workers and Orders',
'version': '12.0.2.3.3',
'category': 'Field Service',
'author': 'Open Source Integrators, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/field-service',
'depends': [
'base_geolocalize',
'mail',
'web_timeline',
'resource',
'contacts',
'partner_fax'
"name": "Field Service",
"summary": "Manage Field Service Locations, Workers and Orders",
"version": "13.0.1.0.0",
"license": "AGPL-3",
"category": "Field Service",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": [
"base_territory",
"base_geolocalize",
"resource",
"contacts",
"partner_fax",
],
'data': [
'data/ir_sequence.xml',
'data/mail_message_subtype.xml',
'data/module_category.xml',
'data/fsm_stage.xml',
'data/fsm_team.xml',
'security/res_groups.xml',
'security/ir.model.access.csv',
'security/ir_rule.xml',
'report/fsm_order_report_template.xml',
'views/res_config_settings.xml',
'views/fsm_territory.xml',
'views/fsm_branch.xml',
'views/fsm_district.xml',
'views/fsm_region.xml',
'views/fsm_stage.xml',
'views/fsm_tag.xml',
'views/res_partner.xml',
'views/fsm_location.xml',
'views/fsm_location_person.xml',
'views/fsm_person.xml',
'views/fsm_order.xml',
'views/fsm_order_type.xml',
'views/fsm_route.xml',
'views/fsm_schedule.xml',
'views/fsm_category.xml',
'views/fsm_equipment.xml',
'views/fsm_template.xml',
'views/fsm_team.xml',
'views/menu.xml',
'wizard/fsm_wizard.xml',
"data": [
"data/ir_sequence.xml",
"data/mail_message_subtype.xml",
"data/module_category.xml",
"data/fsm_stage.xml",
"data/fsm_team.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"security/ir_rule.xml",
"report/fsm_order_report_template.xml",
"views/res_config_settings.xml",
"views/res_territory.xml",
"views/fsm_stage.xml",
"views/fsm_tag.xml",
"views/res_partner.xml",
"views/fsm_location.xml",
"views/fsm_location_person.xml",
"views/fsm_person.xml",
"views/fsm_order.xml",
"views/fsm_order_type.xml",
"views/fsm_category.xml",
"views/fsm_equipment.xml",
"views/fsm_template.xml",
"views/fsm_team.xml",
"views/fsm_order_type.xml",
"views/menu.xml",
"wizard/fsm_wizard.xml",
],
'demo': [
'demo/fsm_demo.xml',
'demo/fsm_equipment.xml',
'demo/fsm_location.xml',
'demo/fsm_person.xml',
],
'qweb': [
'static/src/xml/*.xml',
],
'application': True,
'license': 'AGPL-3',
'development_status': 'Beta',
'maintainers': [
'wolfhall',
'max3903',
"demo": [
"demo/fsm_demo.xml",
"demo/fsm_equipment.xml",
"demo/fsm_location.xml",
"demo/fsm_person.xml",
],
"application": True,
"development_status": "Beta",
"maintainers": ["wolfhall", "max3903"],
}
3 changes: 0 additions & 3 deletions fieldservice/data/fsm_stage.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<odoo noupdate="1">

<record id="fsm_stage_new" model="fsm.stage">
<field name="name">New</field>
<field name="sequence">10</field>
<field name="is_default">True</field>
<field name="stage_type">order</field>
<field name="custom_color">#ECF0F1</field>
</record>

<record id="fsm_stage_completed" model="fsm.stage">
<field name="name">Completed</field>
<field name="sequence">80</field>
Expand All @@ -16,7 +14,6 @@
<field name="is_default">True</field>
<field name="custom_color">#7F8C8D</field>
</record>

<record id="fsm_stage_cancelled" model="fsm.stage">
<field name="name">Cancelled</field>
<field name="sequence">100</field>
Expand Down
3 changes: 0 additions & 3 deletions fieldservice/data/fsm_team.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record id="fsm_team_default" model="fsm.team">
<field name="name">Default Team</field>
</record>

</odoo>
14 changes: 1 addition & 13 deletions fieldservice/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<!-- Sequence for fsm.order -->
<record id="seq_fsm_order" model="ir.sequence">
<field name="name">FSM Order</field>
<field name="code">fsm.order</field>
<field name="prefix">FO</field>
<field name="padding">3</field>
<field name="company_id" eval="False"/>
<field name="company_id" eval="False" />
</record>

<!-- Sequence for fsm.route -->
<record id="seq_fsm_route" model="ir.sequence">
<field name="name">FSM Route</field>
<field name="code">fsm.route</field>
<field name="prefix">SR</field>
<field name="padding">3</field>
<field name="company_id" eval="False"/>
</record>

</odoo>
41 changes: 16 additions & 25 deletions fieldservice/data/mail_message_subtype.xml
Original file line number Diff line number Diff line change
@@ -1,76 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Order related subtypes for messaging / Chatter -->
<record id="mt_order_new" model="mail.message.subtype">
<field name="name">Order Created</field>
<field name="sequence">0</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="hidden" eval="True"/>
<field name="default" eval="False" />
<field name="hidden" eval="True" />
<field name="description">Order created</field>
</record>

<record id="mt_order_confirmed" model="mail.message.subtype">
<field name="name">Order Confirmed</field>
<field name="sequence">10</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order confirmed</field>
</record>

<record id="mt_order_scheduled" model="mail.message.subtype">
<field name="name">Order Scheduled</field>
<field name="sequence">20</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order scheduled</field>
</record>

<record id="mt_order_assigned" model="mail.message.subtype">
<field name="name">Order Assigned</field>
<field name="sequence">30</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order assigned</field>
</record>

<record id="mt_order_enroute" model="mail.message.subtype">
<field name="name">Order En Route</field>
<field name="sequence">40</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order en route</field>
</record>

<record id="mt_order_started" model="mail.message.subtype">
<field name="name">Order Started</field>
<field name="sequence">50</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order started</field>
</record>

<record id="mt_order_completed" model="mail.message.subtype">
<field name="name">Order Completed</field>
<field name="sequence">60</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order completed</field>
</record>

<record id="mt_order_cancelled" model="mail.message.subtype">
<field name="name">Order Cancelled</field>
<field name="sequence">100</field>
<field name="res_model">fsm.order</field>
<field name="default" eval="False"/>
<field name="internal" eval="True"/>
<field name="default" eval="False" />
<field name="internal" eval="True" />
<field name="description">Order cancelled</field>
</record>

</odoo>
3 changes: 0 additions & 3 deletions fieldservice/data/module_category.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="fsm" model="ir.module.category">
<field name="name">Field Service</field>
<field name="sequence">20</field>
</record>

</odoo>
Loading

0 comments on commit c604185

Please sign in to comment.