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 12, 2020
1 parent 81b3fd5 commit 5bf162a
Show file tree
Hide file tree
Showing 83 changed files with 1,668 additions and 2,550 deletions.
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
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
109 changes: 49 additions & 60 deletions fieldservice/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,67 +1,56 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# Copyright (C) 2020 Open Source Integrators
# 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"],
}
1 change: 0 additions & 1 deletion fieldservice/data/fsm_team.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record id="fsm_team_default" model="fsm.team">
Expand Down
10 changes: 0 additions & 10 deletions fieldservice/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<!-- Sequence for fsm.order -->
Expand All @@ -10,13 +9,4 @@
<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>
1 change: 0 additions & 1 deletion fieldservice/data/mail_message_subtype.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Order related subtypes for messaging / Chatter -->
<record id="mt_order_new" model="mail.message.subtype">
Expand Down
1 change: 0 additions & 1 deletion fieldservice/data/module_category.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="fsm" model="ir.module.category">
Expand Down
17 changes: 0 additions & 17 deletions fieldservice/demo/fsm_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,4 @@
<field name="email">tp@email.com</field>
</record>

<!-- fsm.region -->
<record id="test_region" model="fsm.region">
<field name="name">Test Region</field>
</record>
<record id="test_district" model="fsm.district">
<field name="name">Test District</field>
<field name="region_id" eval="ref('test_region')"/>
</record>
<record id="test_branch" model="fsm.branch">
<field name="name">Test Branch</field>
<field name="district_id" eval="ref('test_district')"/>
</record>
<record id="test_territory" model="fsm.territory">
<field name="name">Test Territory</field>
<field name="branch_id" eval="ref('test_branch')"/>
</record>

</odoo>
12 changes: 4 additions & 8 deletions fieldservice/demo/fsm_location.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
<field name="email">tp@email.com</field>
<field name="partner_id" eval="ref('test_loc_partner')"/>
<field name="owner_id" eval="ref('test_loc_partner')"/>
<field name="customer_id" eval="ref('test_loc_partner')"/>
<field name="territory_id" eval="ref('test_territory')"/>
<field name="branch_id" eval="ref('test_branch')"/>
<field name="district_id" eval="ref('test_district')"/>
<field name="region_id" eval="ref('test_region')"/>
<field name="territory_id" eval="ref('base_territory.test_territory')"/>
<field name="branch_id" eval="ref('base_territory.test_branch')"/>
<field name="district_id" eval="ref('base_territory.test_district')"/>
<field name="region_id" eval="ref('base_territory.test_region')"/>
<field name="direction">New the old inventory</field>
<field name="street">14 Tower A, main street</field>
<field name="street2">Bangkok, Thailand</field>
Expand All @@ -39,20 +38,17 @@
<field name="name">Location 1</field>
<field name="partner_id" eval="ref('location_partner_1')"/>
<field name="owner_id" eval="ref('location_partner_1')"/>
<field name="customer_id" eval="ref('location_partner_1')"/>
</record>

<record id="location_2" model="fsm.location">
<field name="name">Location 2</field>
<field name="partner_id" eval="ref('location_partner_2')"/>
<field name="owner_id" eval="ref('location_partner_2')"/>
<field name="customer_id" eval="ref('location_partner_2')"/>
</record>

<record id="location_3" model="fsm.location">
<field name="name">Location 3</field>
<field name="partner_id" eval="ref('location_partner_3')"/>
<field name="owner_id" eval="ref('location_partner_3')"/>
<field name="customer_id" eval="ref('location_partner_3')"/>
</record>
</odoo>
13 changes: 13 additions & 0 deletions fieldservice/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -1783,6 +1783,13 @@ msgstr ""
msgid "Manage Order Activities"
msgstr "Aktivitäten"

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
#, fuzzy
#| msgid "Activities"
msgid "Manage Order Sizes"
msgstr "Aktivitäten"

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage Order Sub-Statuses"
Expand Down Expand Up @@ -1885,6 +1892,12 @@ msgstr "Aktivitäten"
msgid "Manage routes of yoru workers"
msgstr ""

#. module: fieldservice
#: model:ir.model.fields,field_description:fieldservice.field_res_config_settings__module_fieldservice_size
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage sizes for orders and locations"
msgstr ""

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage sub-statuses"
Expand Down
13 changes: 13 additions & 0 deletions fieldservice/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,13 @@ msgstr "Gestionar Categorías de Trabajador de Servicio de Campo"
msgid "Manage Order Activities"
msgstr "Gestionar Actividades de Pedidos"

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
#, fuzzy
#| msgid "Manage Order Activities"
msgid "Manage Order Sizes"
msgstr "Gestionar Actividades de Pedidos"

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage Order Sub-Statuses"
Expand Down Expand Up @@ -1915,6 +1922,12 @@ msgstr "Gestionar Rutas"
msgid "Manage routes of yoru workers"
msgstr "Administra las rutas de tus trabajadores"

#. module: fieldservice
#: model:ir.model.fields,field_description:fieldservice.field_res_config_settings__module_fieldservice_size
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage sizes for orders and locations"
msgstr ""

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage sub-statuses"
Expand Down
13 changes: 13 additions & 0 deletions fieldservice/i18n/es_CL.po
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,13 @@ msgstr "Gestionar Categorías de Trabajador de Servicio de Campo"
msgid "Manage Order Activities"
msgstr "Gestionar Actividades de Pedidos"

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
#, fuzzy
#| msgid "Manage Order Activities"
msgid "Manage Order Sizes"
msgstr "Gestionar Actividades de Pedidos"

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage Order Sub-Statuses"
Expand Down Expand Up @@ -1915,6 +1922,12 @@ msgstr "Gestionar Rutas"
msgid "Manage routes of yoru workers"
msgstr "Administra las rutas de tus trabajadores"

#. module: fieldservice
#: model:ir.model.fields,field_description:fieldservice.field_res_config_settings__module_fieldservice_size
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage sizes for orders and locations"
msgstr ""

#. module: fieldservice
#: model_terms:ir.ui.view,arch_db:fieldservice.res_config_settings_view_form
msgid "Manage sub-statuses"
Expand Down
Loading

0 comments on commit 5bf162a

Please sign in to comment.