-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] survey_condition_validation_option
- condition validation for date and datetime about today option - condition validation for limit max or min count item into multiple selection
- Loading branch information
Showing
25 changed files
with
2,427 additions
and
0 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
...ion_validation_option/odoo/addons/survey_condition_validation_option/README.rst
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,81 @@ | ||
================================== | ||
Survey condition validation option | ||
================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:704977d55306fdb936a96f0521524fe344eba419713d1cbef9c33f9cffbaa02a | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Fsurvey-lightgray.png?logo=github | ||
:target: https://github.com/OCA/survey/tree/16.0/survey_condition_validation_option | ||
:alt: OCA/survey | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/survey-16-0/survey-16-0-survey_condition_validation_option | ||
: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/survey&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module add conditional option to survey: | ||
|
||
* Add a condition of an option on date and datetime types to apply a minimum or maximum on today's day | ||
* Add a condition to set a minimum or maximum of answers on a multiple selection | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/survey/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/survey/issues/new?body=module:%20survey_condition_validation_option%0Aversion:%2016.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 | ||
~~~~~~~ | ||
|
||
* TechnoLibre | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `TechnoLibre <https://technolibre.ca>`_: | ||
|
||
* Mathieu Benoit | ||
|
||
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. | ||
|
||
This module is part of the `OCA/survey <https://github.com/OCA/survey/tree/16.0/survey_condition_validation_option>`_ 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
3
...ey_condition_validation_option/odoo/addons/survey_condition_validation_option/__init__.py
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,3 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import models |
17 changes: 17 additions & 0 deletions
17
...ondition_validation_option/odoo/addons/survey_condition_validation_option/__manifest__.py
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,17 @@ | ||
# Copyright 2024 TechnoLibre - Mathieu Benoit | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Survey condition validation option", | ||
"version": "16.0.1.0.0", | ||
"author": "TechnoLibre, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/survey", | ||
"license": "AGPL-3", | ||
"category": "Marketing/Surveys", | ||
"development_status": "Beta", | ||
"data": ["views/survey_question_views.xml"], | ||
"depends": [ | ||
"survey", | ||
], | ||
"installable": True, | ||
} |
182 changes: 182 additions & 0 deletions
182
..._condition_validation_option/odoo/addons/survey_condition_validation_option/i18n/fr_CA.po
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,182 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * survey_condition_validation_option | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-11-17 18:02+0000\n" | ||
"PO-Revision-Date: 2024-11-17 18:02+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: survey_condition_validation_option | ||
#: model_terms:ir.ui.view,arch_db:survey_condition_validation_option.survey_question_form | ||
msgid "'Date maximum' option" | ||
msgstr "" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model_terms:ir.ui.view,arch_db:survey_condition_validation_option.survey_question_form | ||
msgid "'Date minimum' option" | ||
msgstr "" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model_terms:ir.ui.view,arch_db:survey_condition_validation_option.survey_question_form | ||
msgid "'Datetime maximum' option" | ||
msgstr "Datetime maximum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model_terms:ir.ui.view,arch_db:survey_condition_validation_option.survey_question_form | ||
msgid "'Datetime minimum' option" | ||
msgstr "Datetime minimum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,field_description:survey_condition_validation_option.field_survey_question__validation_max_multiple_choice_option | ||
msgid "Maximum Number of Answers" | ||
msgstr "Nombre de réponse maximum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,field_description:survey_condition_validation_option.field_survey_question__validation_max_date_option | ||
msgid "Maximum date option" | ||
msgstr "Option de date maximum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,field_description:survey_condition_validation_option.field_survey_question__validation_max_datetime_option | ||
msgid "Maximum datetime option" | ||
msgstr "Option de datetime maximum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,field_description:survey_condition_validation_option.field_survey_question__validation_min_multiple_choice_option | ||
msgid "Minimum Number of Answers" | ||
msgstr "Nombre de réponse minimum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,field_description:survey_condition_validation_option.field_survey_question__validation_min_date_option | ||
msgid "Minimum date option" | ||
msgstr "Option de date minimum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,field_description:survey_condition_validation_option.field_survey_question__validation_min_datetime_option | ||
msgid "Minimum datetime option" | ||
msgstr "Option de datetime minimum" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model_terms:ir.ui.view,arch_db:survey_condition_validation_option.survey_question_form | ||
msgid "Multiple choice max" | ||
msgstr "Choix multiple max" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model_terms:ir.ui.view,arch_db:survey_condition_validation_option.survey_question_form | ||
msgid "Multiple choice min" | ||
msgstr "Choix multiple min" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model,name:survey_condition_validation_option.model_survey_question | ||
msgid "Survey Question" | ||
msgstr "Question de sondage" | ||
|
||
#. module: survey_condition_validation_option | ||
#. odoo-python | ||
#: code:addons/addons.odoo16.0/OCA_survey/survey_condition_validation_option/models/survey_question.py:0 | ||
#: code:addons/survey_condition_validation_option/models/survey_question.py:0 | ||
#, python-format | ||
msgid "The date needs to be after %(date_min_show)s." | ||
msgstr "La date doit être après le %(date_min_show)s." | ||
|
||
#. module: survey_condition_validation_option | ||
#. odoo-python | ||
#: code:addons/addons.odoo16.0/OCA_survey/survey_condition_validation_option/models/survey_question.py:0 | ||
#: code:addons/survey_condition_validation_option/models/survey_question.py:0 | ||
#, python-format | ||
msgid "The date needs to be before %(date_max_show)s." | ||
msgstr "La date doit être avant le %(date_max_show)s." | ||
|
||
#. module: survey_condition_validation_option | ||
#. odoo-python | ||
#: code:addons/addons.odoo16.0/OCA_survey/survey_condition_validation_option/models/survey_question.py:0 | ||
#: code:addons/survey_condition_validation_option/models/survey_question.py:0 | ||
#, python-format | ||
msgid "The date needs to be between %(date_min_show)s and %(date_max_show)s." | ||
msgstr "La date doit être entre le %(date_min_show)s et le %(date_max_show)s." | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,help:survey_condition_validation_option.field_survey_question__validation_min_date_option | ||
msgid "The option is affected by validation_max_date_option" | ||
msgstr "L'option est affectée par validation_max_date_option" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,help:survey_condition_validation_option.field_survey_question__validation_min_datetime_option | ||
msgid "The option is affected by validation_max_datetime_option" | ||
msgstr "L'option est affectée par validation_max_datetime_option" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,help:survey_condition_validation_option.field_survey_question__validation_min_multiple_choice_option | ||
msgid "" | ||
"The option is affected by validation_max_multiple_choice_option, limit the " | ||
"selection value to be choose. -1 disable this option." | ||
msgstr "" | ||
"L'option est affectée par validation_max_multiple_choice_option, limite la " | ||
"valeur de la sélection. -1 désactive cette option." | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,help:survey_condition_validation_option.field_survey_question__validation_max_date_option | ||
msgid "The option is affected by validation_min_date_option" | ||
msgstr "L'option est affectée par validation_min_date_option" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,help:survey_condition_validation_option.field_survey_question__validation_max_datetime_option | ||
msgid "The option is affected by validation_min_datetime_option" | ||
msgstr "L'option est affectée par validation_min_datetime_option" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields,help:survey_condition_validation_option.field_survey_question__validation_max_multiple_choice_option | ||
msgid "" | ||
"The option is affected by validation_min_multiple_choice_option, limit the " | ||
"selection value to be choose. -1 disable this option." | ||
msgstr "" | ||
"L'option est affectée par validation_min_multiple_choice_option, limite la " | ||
"sélection. -1 désactive cette option." | ||
|
||
#. module: survey_condition_validation_option | ||
#. odoo-python | ||
#: code:addons/addons.odoo16.0/OCA_survey/survey_condition_validation_option/models/survey_question.py:0 | ||
#: code:addons/survey_condition_validation_option/models/survey_question.py:0 | ||
#, python-format | ||
msgid "This is not a date" | ||
msgstr "Ceci n'est pas une date valide" | ||
|
||
#. module: survey_condition_validation_option | ||
#: model:ir.model.fields.selection,name:survey_condition_validation_option.selection__survey_question__validation_max_date_option__today | ||
#: model:ir.model.fields.selection,name:survey_condition_validation_option.selection__survey_question__validation_max_datetime_option__today | ||
#: model:ir.model.fields.selection,name:survey_condition_validation_option.selection__survey_question__validation_min_date_option__today | ||
#: model:ir.model.fields.selection,name:survey_condition_validation_option.selection__survey_question__validation_min_datetime_option__today | ||
msgid "Today" | ||
msgstr "Aujourd'hui" | ||
|
||
#. module: survey_condition_validation_option | ||
#. odoo-python | ||
#: code:addons/addons.odoo16.0/OCA_survey/survey_condition_validation_option/models/survey_question.py:0 | ||
#: code:addons/survey_condition_validation_option/models/survey_question.py:0 | ||
#, python-format | ||
msgid "" | ||
"You need to select %(min_value)s answer, you chose %(len_answer)s answer." | ||
msgstr "" | ||
"Choisir %(min_value)s réponse(s), vous avez choisi %(len_answer)s " | ||
"réponse(s)." | ||
|
||
#. module: survey_condition_validation_option | ||
#. odoo-python | ||
#: code:addons/addons.odoo16.0/OCA_survey/survey_condition_validation_option/models/survey_question.py:0 | ||
#: code:addons/survey_condition_validation_option/models/survey_question.py:0 | ||
#, python-format | ||
msgid "" | ||
"You need to select between %(min_value)s and %(max_value)s answers, you " | ||
"chose %(len_answer)s answer." | ||
msgstr "" | ||
"Choisir entre %(min_value)s et %(max_value)s réponse(s). Vous avez choisi " | ||
"%(len_answer)s réponse(s)." |
Oops, something went wrong.