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

[17.0][MIG] fieldservice_stage_validation: Migration to 17.0 #1179

Merged
merged 33 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4412aad
[ADD] fieldservice_stage_validation
brian10048 Apr 17, 2020
190b5ac
[FIX] fieldservice_stage_validation
brian10048 Jun 19, 2020
9597aac
fieldservice_stage_validation 12.0.0.2.0
OCA-git-bot Jun 28, 2020
3f61d99
Added translation using Weblate (Portuguese (Portugal))
dreispt Jul 1, 2020
9bac81e
Translated using Weblate (Portuguese (Portugal))
dreispt Jul 1, 2020
239eb4f
[IMP] fieldservice_stage_validation: black, isort, prettier
brian10048 Jul 21, 2020
3b280ef
[MIG] fieldservice_stage_validation: Migration to 13.0
brian10048 Jul 21, 2020
2b0f227
[IMP] fieldservice_stage_validation: Add test
brian10048 Oct 27, 2020
110f59d
Added translation using Weblate (Spanish (Argentina))
ibuioli Apr 27, 2021
58ebb7e
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 28, 2021
0272739
Added translation using Weblate (French (France))
sanrav May 20, 2021
94e1926
Translated using Weblate (French (France))
sanrav May 20, 2021
1068ffe
Added translation using Weblate (Turkish)
tate11 Jul 10, 2021
63fd4a7
Added translation using Weblate (Italian)
mymage Sep 26, 2021
9bc634d
Translated using Weblate (Italian)
mymage Sep 27, 2021
4f42e2a
[IMP] fieldservice_stage_validation: black, isort, prettier
yankinmax Jul 28, 2022
b2c422a
[MIG] fieldservice_stage_validation: Migration to 14.0
yankinmax Jul 28, 2022
b0a85f0
[FIX] pre-commit.
ShwetaSerpentCS Nov 3, 2022
2c00db0
Update pre-commit.yml
ShwetaSerpentCS Nov 7, 2022
7ea3c46
[FIX] fieldservice_stage_validation: test
ShwetaSerpentCS Nov 8, 2022
7aa7aa5
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 12, 2022
e89eb0c
Translated using Weblate (Italian)
mymage Nov 15, 2022
6189b94
Added translation using Weblate (Spanish)
macagua Mar 2, 2023
205ed7a
Translated using Weblate (Spanish)
macagua Mar 2, 2023
cae0f02
[MIG] fieldservice_stage_validation: Migration to 16.0
May 2, 2023
8a0d706
[UPD] Update fieldservice_stage_validation.pot
Jul 13, 2023
9ab5e3d
[UPD] README.rst
OCA-git-bot Jul 13, 2023
5e5e0e8
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Aug 11, 2023
66e05dd
Translated using Weblate (Portuguese (Brazil))
adrianojprado Aug 11, 2023
aba6b2c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
85eda03
Update translation files
weblate Oct 9, 2023
670032d
[IMP] fieldservice_stage_validation: pre-commit auto fixes
peluko00 Apr 18, 2024
6e5dfbf
[MIG] fieldservice_stage_validation: Migration to 17.0
peluko00 Apr 19, 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:9b151ff66d87078952dbeea942b63732c5f353f6b4a6177b5121eceee261f2a0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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": "17.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 16.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