-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by max3903
- Loading branch information
Showing
29 changed files
with
1,460 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
==================== | ||
FSM Stage Validation | ||
==================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/15.0/fieldservice_stage_validation | ||
: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-15-0/field-service-15-0-fieldservice_stage_validation | ||
: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/15.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
As the stage of a field service document progresses, it may be important for | ||
specific fields of the document be completed. | ||
|
||
For example, when a field service order enters the 'Complete' stage, the | ||
fields for 'Actual End Date' and/or 'Resolution Notes' should be set. | ||
|
||
This module allows you to raise a Validation Error if the designated fields | ||
are not set when moving to a new stage. Since stages can be used for field | ||
service orders, workers, locations, or equipments, this logic is available | ||
to be applied to each document type. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
* Go to Field Service > Configuration > Stages | ||
* Create or select a stage | ||
* Select one or more fields to be validated | ||
|
||
Usage | ||
===== | ||
|
||
* Follow steps outlined in Configuration. | ||
* User will receive validation error if a field is not set when | ||
attempting to move to a new stage. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
The roadmap of the Field Service application is documented on | ||
`Github <https://github.com/OCA/field-service/issues/1>`_. | ||
|
||
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_stage_validation%0Aversion:%2015.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 | ||
~~~~~~~ | ||
|
||
* Brian McMaster | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Brian McMaster <[email protected]> | ||
|
||
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-brian10048| image:: https://github.com/brian10048.png?size=40px | ||
:target: https://github.com/brian10048 | ||
:alt: brian10048 | ||
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px | ||
:target: https://github.com/max3903 | ||
:alt: max3903 | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-brian10048| |maintainer-max3903| | ||
|
||
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/15.0/fieldservice_stage_validation>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright (C) 2020 Brian McMaster <[email protected]> | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (C) 2020 Brian McMaster <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "FSM Stage Validation", | ||
"summary": "Validate input data when reaching a Field Service stage", | ||
"version": "16.0.1.0.0", | ||
"category": "Field Service", | ||
"author": "Brian McMaster, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/field-service", | ||
"depends": ["fieldservice"], | ||
"data": ["views/fsm_stage.xml"], | ||
"license": "AGPL-3", | ||
"development_status": "Beta", | ||
"maintainers": ["brian10048", "max3903"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * fieldservice_stage_validation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2023-03-02 20:22+0000\n" | ||
"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.14.1\n" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: code:addons/fieldservice_stage_validation/models/validate_utils.py:0 | ||
#, python-format | ||
msgid "Cannot move to stage \"%(stage_name)s\" until the \"%(name)s\" field is set." | ||
msgstr "" | ||
"No se puede mover al escenario \"%(stage_name)s\" hasta que se establezca el " | ||
"campo \"%(name)s\"." | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_equipment | ||
msgid "Field Service Equipment" | ||
msgstr "Equipo de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_location | ||
msgid "Field Service Location" | ||
msgstr "Ubicación del Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_order | ||
msgid "Field Service Order" | ||
msgstr "Pedido de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_stage | ||
msgid "Field Service Stage" | ||
msgstr "Etapa de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_person | ||
msgid "Field Service Worker" | ||
msgstr "Trabajador de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,field_description:fieldservice_stage_validation.field_fsm_stage__validate_field_ids | ||
msgid "Fields to Validate" | ||
msgstr "Campos a Validar" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,field_description:fieldservice_stage_validation.field_fsm_stage__stage_type_model_id | ||
msgid "Model for Stage" | ||
msgstr "Modelo para la Etapa" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,help:fieldservice_stage_validation.field_fsm_stage__validate_field_ids | ||
msgid "Select fields which must be set on the document in this stage" | ||
msgstr "" | ||
"Seleccione los campos que se deben establecer en el documento en esta etapa" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,help:fieldservice_stage_validation.field_fsm_stage__stage_type_model_id | ||
msgid "Technical field to hold model type" | ||
msgstr "Campo técnico para mantener el tipo del modelo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * fieldservice_stage_validation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2022-11-12 04:46+0000\n" | ||
"Last-Translator: Ignacio Buioli <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: es_AR\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.14.1\n" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: code:addons/fieldservice_stage_validation/models/validate_utils.py:0 | ||
#, python-format | ||
msgid "" | ||
"Cannot move to stage \"%(stage_name)s\" until the \"%(name)s\" field is set." | ||
msgstr "" | ||
"No se puede mover al escenario \"%(stage_name)s\" hasta que se establezca el " | ||
"campo \"%(name)s\"." | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_equipment | ||
msgid "Field Service Equipment" | ||
msgstr "Equipo de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_location | ||
msgid "Field Service Location" | ||
msgstr "Ubicación del Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_order | ||
msgid "Field Service Order" | ||
msgstr "Pedido de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_stage | ||
msgid "Field Service Stage" | ||
msgstr "Etapa de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_person | ||
msgid "Field Service Worker" | ||
msgstr "Trabajador de Servicio de Campo" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,field_description:fieldservice_stage_validation.field_fsm_stage__validate_field_ids | ||
msgid "Fields to Validate" | ||
msgstr "Campos a Validar" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,field_description:fieldservice_stage_validation.field_fsm_stage__stage_type_model_id | ||
msgid "Model for Stage" | ||
msgstr "Modelo para la Etapa" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,help:fieldservice_stage_validation.field_fsm_stage__validate_field_ids | ||
msgid "Select fields which must be set on the document in this stage" | ||
msgstr "" | ||
"Seleccione los campos que se deben establecer en el documento en esta etapa" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,help:fieldservice_stage_validation.field_fsm_stage__stage_type_model_id | ||
msgid "Technical field to hold model type" | ||
msgstr "Campo técnico para mantener el tipo del modelo" | ||
|
||
#, python-format | ||
#~ msgid "Cannot move to stage \"%s\" until the \"%s\" field is set." | ||
#~ msgstr "" | ||
#~ "No se puede mover a la etapa \"%s\" hasta que se establezca el campo \"%s" | ||
#~ "\"." |
65 changes: 65 additions & 0 deletions
65
fieldservice_stage_validation/i18n/fieldservice_stage_validation.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * fieldservice_stage_validation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: code:addons/fieldservice_stage_validation/models/validate_utils.py:0 | ||
#, python-format | ||
msgid "Cannot move to stage \"%(stage_name)s\" until the \"%(name)s\" field is set." | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_equipment | ||
msgid "Field Service Equipment" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_location | ||
msgid "Field Service Location" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_order | ||
msgid "Field Service Order" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_stage | ||
msgid "Field Service Stage" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model,name:fieldservice_stage_validation.model_fsm_person | ||
msgid "Field Service Worker" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,field_description:fieldservice_stage_validation.field_fsm_stage__validate_field_ids | ||
msgid "Fields to Validate" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,field_description:fieldservice_stage_validation.field_fsm_stage__stage_type_model_id | ||
msgid "Model for Stage" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,help:fieldservice_stage_validation.field_fsm_stage__validate_field_ids | ||
msgid "Select fields which must be set on the document in this stage" | ||
msgstr "" | ||
|
||
#. module: fieldservice_stage_validation | ||
#: model:ir.model.fields,help:fieldservice_stage_validation.field_fsm_stage__stage_type_model_id | ||
msgid "Technical field to hold model type" | ||
msgstr "" |
Oops, something went wrong.