Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] fieldservice_stage_validation #1248

Open
wants to merge 37 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a014e44
[ADD] fieldservice_stage_validation
brian10048 Apr 17, 2020
be98221
[FIX] fieldservice_stage_validation
brian10048 Jun 19, 2020
475ce56
fieldservice_stage_validation 12.0.0.2.0
OCA-git-bot Jun 28, 2020
e544bc3
Added translation using Weblate (Portuguese (Portugal))
dreispt Jul 1, 2020
6b102fd
Translated using Weblate (Portuguese (Portugal))
dreispt Jul 1, 2020
2450e21
[IMP] fieldservice_stage_validation: black, isort, prettier
brian10048 Jul 21, 2020
ecd6f3d
[MIG] fieldservice_stage_validation: Migration to 13.0
brian10048 Jul 21, 2020
2688ea2
[IMP] fieldservice_stage_validation: Add test
brian10048 Oct 27, 2020
11b5708
Added translation using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
eac5891
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 28, 2021
c56c97a
Added translation using Weblate (French (France))
sanrav May 20, 2021
d84a90c
Translated using Weblate (French (France))
sanrav May 20, 2021
eefce21
Added translation using Weblate (Turkish)
tate11 Jul 10, 2021
902ad6d
Added translation using Weblate (Italian)
mymage Sep 26, 2021
feb85c4
Translated using Weblate (Italian)
mymage Sep 27, 2021
4d41e7b
[IMP] fieldservice_stage_validation: black, isort, prettier
yankinmax Jul 28, 2022
e57de74
[MIG] fieldservice_stage_validation: Migration to 14.0
yankinmax Jul 28, 2022
8aa2f32
[FIX] pre-commit.
ShwetaSerpentCS Nov 3, 2022
733583a
Update pre-commit.yml
ShwetaSerpentCS Nov 7, 2022
45e4580
[FIX] fieldservice_stage_validation: test
ShwetaSerpentCS Nov 8, 2022
77742e0
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 12, 2022
cfc742d
Translated using Weblate (Italian)
mymage Nov 15, 2022
f70e9a8
Added translation using Weblate (Spanish)
macagua Mar 2, 2023
e08bbb4
Translated using Weblate (Spanish)
macagua Mar 2, 2023
d3b6665
[MIG] fieldservice_stage_validation: Migration to 16.0
May 2, 2023
d40f2df
[UPD] Update fieldservice_stage_validation.pot
Jul 13, 2023
f86b906
[UPD] README.rst
OCA-git-bot Jul 13, 2023
cb63202
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Aug 11, 2023
d957679
Translated using Weblate (Portuguese (Brazil))
adrianojprado Aug 11, 2023
7b6d36d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
de9e10f
Update translation files
weblate Oct 9, 2023
3f216dc
[IMP] fieldservice_stage_validation: pre-commit auto fixes
peluko00 Apr 18, 2024
50c0bc7
[MIG] fieldservice_stage_validation: Migration to 17.0
peluko00 Apr 19, 2024
9f24ca6
[UPD] Update fieldservice_stage_validation.pot
Apr 25, 2024
0535992
[BOT] post-merge updates
OCA-git-bot Apr 25, 2024
a0763c6
Translated using Weblate (Italian)
mymage Apr 29, 2024
44bef31
[MIG] fieldservice_stage_validation: Migration to 18.0
EdgarRetes Oct 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions fieldservice_stage_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
====================
FSM Stage Validation
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1ced40d5e26a6495ac55732e9d6ba749aa76729869fa24363ba8b7d8ccaa03b1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/field-service-17-0-fieldservice_stage_validation
: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=17.0
:alt: Try me on Runboat

|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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_stage_validation%0Aversion:%2017.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 <brian@mcmpest.com>
- `APSL <https://apsl.tech>`__:

- Antoni Marroig <amarroig@apsl.net>

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/17.0/fieldservice_stage_validation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions fieldservice_stage_validation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2020 Brian McMaster <brian@mcmpest.com>
from . import models
15 changes: 15 additions & 0 deletions fieldservice_stage_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (C) 2020 Brian McMaster <brian@mcmpest.com>
# 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": "18.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"],
}
68 changes: 68 additions & 0 deletions fieldservice_stage_validation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stage_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-19 06:49+0000\n"
"PO-Revision-Date: 2024-04-19 06:49+0000\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
#. odoo-python
#: 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 de 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"
79 changes: 79 additions & 0 deletions fieldservice_stage_validation/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# 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 <ibuioli@gmail.com>\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
#. odoo-python
#: 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"
#~ "\"."
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stage_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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
#. odoo-python
#: 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 ""
Loading
Loading