Skip to content

Commit

Permalink
Merge PR #1228 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Nov 20, 2024
2 parents 617ea8d + fb3f588 commit a8e19a7
Show file tree
Hide file tree
Showing 39 changed files with 4,548 additions and 0 deletions.
125 changes: 125 additions & 0 deletions fieldservice_route/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
===================
Field Service Route
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4eb3762664d38a5441427c021445f244ea74944abad699e85dcf43512c387cd7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/18.0/fieldservice_route
: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-18-0/field-service-18-0-fieldservice_route
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/field-service&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

A Field Service route is the sorted list of orders that one
worker/vehicle will perform during a day.

This module allows you to manage your Field Service routes: when
assigning an order to a worker and scheduling it, a route is
automatically created for that worker and day.

**Table of contents**

.. contents::
:local:

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

To use this module, you need to:

- Go to Field Service > Configuration > Stages
- Define the workflow of your routes by creating new stages whose type
is "Route"
- Go to Field Service > Master Data > Routes
- Create your routes by setting their name and selecting their
territory

Usage
=====

To use this module, you need to:

- Go to Field Service
- Create or select an order
- Assign it to a worker and schedule it
- Go to Field Service > Dashboard > Day Routes. A new record has been
created.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_route%0Aversion:%2018.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.

Credits
=======

Authors
-------

* Open Source Integrators

Contributors
------------

- Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
- Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>
- Freni Patel <fpatel@opensourceintegrators.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Víctor Martínez

Other credits
-------------

The development of this module has been financially supported by:

- Open Source Integrators <https://opensourceintegrators.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-max3903|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions fieldservice_route/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
28 changes: 28 additions & 0 deletions fieldservice_route/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2019 Open Source Integrators
# Copyright (C) 2019 Serpent consulting Services
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Field Service Route",
"summary": "Organize the routes of each day.",
"version": "18.0.1.0.0",
"category": "Field Service",
"license": "AGPL-3",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": ["fieldservice"],
"data": [
"data/ir_sequence.xml",
"data/fsm_route_day_data.xml",
"data/fsm_stage_data.xml",
"security/ir.model.access.csv",
"views/fsm_route_day.xml",
"views/fsm_route.xml",
"views/fsm_location.xml",
"views/fsm_route_dayroute.xml",
"views/fsm_order.xml",
"views/menu.xml",
],
"development_status": "Beta",
"maintainers": ["max3903"],
}
29 changes: 29 additions & 0 deletions fieldservice_route/data/fsm_route_day_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<odoo noupdate="1">
<record id="fsm_route_day_0" model="fsm.route.day">
<field name="name">Monday</field>
</record>

<record id="fsm_route_day_1" model="fsm.route.day">
<field name="name">Tuesday</field>
</record>

<record id="fsm_route_day_2" model="fsm.route.day">
<field name="name">Wednesday</field>
</record>

<record id="fsm_route_day_3" model="fsm.route.day">
<field name="name">Thursday</field>
</record>

<record id="fsm_route_day_4" model="fsm.route.day">
<field name="name">Friday</field>
</record>

<record id="fsm_route_day_5" model="fsm.route.day">
<field name="name">Saturday</field>
</record>

<record id="fsm_route_day_6" model="fsm.route.day">
<field name="name">Sunday</field>
</record>
</odoo>
17 changes: 17 additions & 0 deletions fieldservice_route/data/fsm_stage_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<odoo noupdate="1">
<record id="fsm_stage_route_new" model="fsm.stage">
<field name="name">New</field>
<field name="sequence">10</field>
<field name="is_default">True</field>
<field name="stage_type">route</field>
<field name="custom_color">#ECF0F1</field>
</record>

<record id="fsm_stage_route_close" model="fsm.stage">
<field name="name">Closed</field>
<field name="sequence">20</field>
<field name="is_closed">True</field>
<field name="stage_type">route</field>
<field name="custom_color">#7F8C8D</field>
</record>
</odoo>
10 changes: 10 additions & 0 deletions fieldservice_route/data/ir_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<odoo noupdate="1">
<!-- Sequence for fsm.route -->
<record id="seq_fsm_route" model="ir.sequence">
<field name="name">FSM Day Route</field>
<field name="code">fsm.route.dayroute</field>
<field name="prefix">SR</field>
<field name="padding">3</field>
<field name="company_id" eval="False" />
</record>
</odoo>
Loading

0 comments on commit a8e19a7

Please sign in to comment.