From b64bdf2c51b67fd2fd9a35d268bd49faba5518d3 Mon Sep 17 00:00:00 2001 From: Antoni Marroig Campomar Date: Fri, 19 Apr 2024 08:33:20 +0200 Subject: [PATCH] [MIG] fieldservice_stage_validation: Migration to 17.0 --- fieldservice_stage_validation/README.rst | 3 +++ fieldservice_stage_validation/__manifest__.py | 2 +- fieldservice_stage_validation/models/validate_utils.py | 5 +---- fieldservice_stage_validation/readme/CONTRIBUTORS.md | 2 ++ fieldservice_stage_validation/static/description/index.html | 4 ++++ 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/fieldservice_stage_validation/README.rst b/fieldservice_stage_validation/README.rst index d1160b2a8e..f321e65389 100644 --- a/fieldservice_stage_validation/README.rst +++ b/fieldservice_stage_validation/README.rst @@ -86,6 +86,9 @@ Contributors ------------ - Brian McMaster +- `APSL `__: + + - Antoni Marroig Maintainers ----------- diff --git a/fieldservice_stage_validation/__manifest__.py b/fieldservice_stage_validation/__manifest__.py index 8abac6be0b..a4414d775a 100644 --- a/fieldservice_stage_validation/__manifest__.py +++ b/fieldservice_stage_validation/__manifest__.py @@ -3,7 +3,7 @@ { "name": "FSM Stage Validation", "summary": "Validate input data when reaching a Field Service stage", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Field Service", "author": "Brian McMaster, Odoo Community Association (OCA)", "website": "https://github.com/OCA/field-service", diff --git a/fieldservice_stage_validation/models/validate_utils.py b/fieldservice_stage_validation/models/validate_utils.py index e8129d8cc1..eb8711294c 100644 --- a/fieldservice_stage_validation/models/validate_utils.py +++ b/fieldservice_stage_validation/models/validate_utils.py @@ -16,9 +16,6 @@ def validate_stage_fields(records): if not values[0][name]: raise ValidationError( _( - 'Cannot move to stage "%(stage_name)s" ' - 'until the "%(name)s" field is set.', - stage_name=stage.name, - name=name, + f"Cannot move to stage {stage.name} until the {name} field is set." ) ) diff --git a/fieldservice_stage_validation/readme/CONTRIBUTORS.md b/fieldservice_stage_validation/readme/CONTRIBUTORS.md index d3646186b6..31661d9190 100644 --- a/fieldservice_stage_validation/readme/CONTRIBUTORS.md +++ b/fieldservice_stage_validation/readme/CONTRIBUTORS.md @@ -1 +1,3 @@ - Brian McMaster \<\> +- [APSL](https://apsl.tech): + - Antoni Marroig \<\> diff --git a/fieldservice_stage_validation/static/description/index.html b/fieldservice_stage_validation/static/description/index.html index 219e12072f..43ac29eb67 100644 --- a/fieldservice_stage_validation/static/description/index.html +++ b/fieldservice_stage_validation/static/description/index.html @@ -434,6 +434,10 @@

Authors

Contributors