diff --git a/setup/survey_answer_generation/odoo/addons/survey_answer_generation b/setup/survey_answer_generation/odoo/addons/survey_answer_generation new file mode 120000 index 00000000..c096058b --- /dev/null +++ b/setup/survey_answer_generation/odoo/addons/survey_answer_generation @@ -0,0 +1 @@ +../../../../survey_answer_generation \ No newline at end of file diff --git a/setup/survey_answer_generation/setup.py b/setup/survey_answer_generation/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/survey_answer_generation/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/survey_answer_generation/README.rst b/survey_answer_generation/README.rst new file mode 100644 index 00000000..b266ffca --- /dev/null +++ b/survey_answer_generation/README.rst @@ -0,0 +1,109 @@ +======================== +Survey answer generation +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e3891e6009936fd7316e124a0a604a392fad78a3124ef1d8191594de096bf41f + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/15.0/survey_answer_generation + :alt: OCA/survey +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/survey-15-0/survey-15-0-survey_answer_generation + :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=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to prefill answers from one survey to another. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +You can configure either a new or an existing survey. + +#. Go to *Surveys* and choose an existing one or create it. +#. In the *Options* tab, *Questions* group, choose the *Next Survey*. + +Now you'll have to configure the destination questions linked to this survey's questions. + +#. Go to the *Answers* tab choose the linked question. +#. For simple/multiple choice qustions you'll have to link the answers as well. + +Usage +===== + +Once the survey is configured, the users can fill them up as usual. The answers in the +next survey will be prefilled according to the linked questions. + +If the user changes any response in the next question, we can tell the difference in +the backend: go to the participation and in the answers tree let the column +*Diff with origin* show. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* `Tecnativa `_ + + * David Vidal + +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-chienandalu| image:: https://github.com/chienandalu.png?size=40px + :target: https://github.com/chienandalu + :alt: chienandalu + +Current `maintainer `__: + +|maintainer-chienandalu| + +This module is part of the `OCA/survey `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/survey_answer_generation/__init__.py b/survey_answer_generation/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/survey_answer_generation/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/survey_answer_generation/__manifest__.py b/survey_answer_generation/__manifest__.py new file mode 100644 index 00000000..0b7c1130 --- /dev/null +++ b/survey_answer_generation/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2022 Tecnativa - David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Survey answer generation", + "summary": "Pre-generate answers from another survey", + "version": "15.0.1.0.0", + "development_status": "Beta", + "category": "Marketing/Survey", + "website": "https://github.com/OCA/survey", + "author": "Tecnativa, Odoo Community Association (OCA)", + "maintainers": ["chienandalu"], + "license": "AGPL-3", + "depends": ["survey"], + "data": [ + "views/survey_question_views.xml", + "views/survey_survey_views.xml", + "views/survey_user_input_views.xml", + ], +} diff --git a/survey_answer_generation/i18n/es.po b/survey_answer_generation/i18n/es.po new file mode 100644 index 00000000..2046f7d5 --- /dev/null +++ b/survey_answer_generation/i18n/es.po @@ -0,0 +1,104 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * survey_answer_generation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-16 15:06+0000\n" +"PO-Revision-Date: 2023-11-16 16:11+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.4\n" + +#. module: survey_answer_generation +#: code:addons/survey_answer_generation/models/survey_user_input.py:0 +#, python-format +msgid "Current" +msgstr "Actual" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input__diff_user_input_line_count +msgid "Diff User Input Line Count" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input_line__diff_with_origin +msgid "Diff With Origin" +msgstr "Diferencias con el original" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question__next_survey_id +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_survey__next_survey_id +msgid "Next Survey" +msgstr "Próxima encuesta" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input__next_survey_input_id +msgid "Next Survey Input" +msgstr "Respuestas de la próxima encuesta" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question__next_survey_question_id +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question_answer__next_survey_question_id +msgid "Next Survey Question" +msgstr "Pregunta de la próxima encuesta" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question_answer__next_survey_question_answer_id +msgid "Next Survey Question Answer" +msgstr "Respuesta a la pregunta de la próxima encuesta" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input__origin_input_id +msgid "Origin Input" +msgstr "Respuestas de origen" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input_line__origin_input_line +msgid "Origin Input Line" +msgstr "Línea de repuestas de origen" + +#. module: survey_answer_generation +#: model:ir.model.fields,help:survey_answer_generation.field_survey_question__next_survey_question_id +#: model:ir.model.fields,help:survey_answer_generation.field_survey_question_answer__next_survey_question_answer_id +#: model:ir.model.fields,help:survey_answer_generation.field_survey_question_answer__next_survey_question_id +msgid "Prefill this answer of the next survey with the answer of this one" +msgstr "Rellenar previamente la respuesta de la próxima encuesta con la respuesta de esta" + +#. module: survey_answer_generation +#: code:addons/survey_answer_generation/models/survey_user_input.py:0 +#, python-format +msgid "Previous" +msgstr "Anterior" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_survey +msgid "Survey" +msgstr "Encuesta" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_question_answer +msgid "Survey Label" +msgstr "Etiqueta de la encuesta" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_question +msgid "Survey Question" +msgstr "Pregunta de la encuesta" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_user_input +msgid "Survey User Input" +msgstr "Entrada de usuario de la encuesta" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_user_input_line +msgid "Survey User Input Line" +msgstr "Línea de entrada de usuario de la encuesta" diff --git a/survey_answer_generation/i18n/survey_answer_generation.pot b/survey_answer_generation/i18n/survey_answer_generation.pot new file mode 100644 index 00000000..43aed8db --- /dev/null +++ b/survey_answer_generation/i18n/survey_answer_generation.pot @@ -0,0 +1,102 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * survey_answer_generation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-16 15:05+0000\n" +"PO-Revision-Date: 2023-11-16 15:05+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_answer_generation +#: code:addons/survey_answer_generation/models/survey_user_input.py:0 +#, python-format +msgid "Current" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input__diff_user_input_line_count +msgid "Diff User Input Line Count" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input_line__diff_with_origin +msgid "Diff With Origin" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question__next_survey_id +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_survey__next_survey_id +msgid "Next Survey" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input__next_survey_input_id +msgid "Next Survey Input" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question__next_survey_question_id +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question_answer__next_survey_question_id +msgid "Next Survey Question" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_question_answer__next_survey_question_answer_id +msgid "Next Survey Question Answer" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input__origin_input_id +msgid "Origin Input" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,field_description:survey_answer_generation.field_survey_user_input_line__origin_input_line +msgid "Origin Input Line" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model.fields,help:survey_answer_generation.field_survey_question__next_survey_question_id +#: model:ir.model.fields,help:survey_answer_generation.field_survey_question_answer__next_survey_question_answer_id +#: model:ir.model.fields,help:survey_answer_generation.field_survey_question_answer__next_survey_question_id +msgid "Prefill this answer of the next survey with the answer of this one" +msgstr "" + +#. module: survey_answer_generation +#: code:addons/survey_answer_generation/models/survey_user_input.py:0 +#, python-format +msgid "Previous" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_survey +msgid "Survey" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_question_answer +msgid "Survey Label" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_question +msgid "Survey Question" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_user_input +msgid "Survey User Input" +msgstr "" + +#. module: survey_answer_generation +#: model:ir.model,name:survey_answer_generation.model_survey_user_input_line +msgid "Survey User Input Line" +msgstr "" diff --git a/survey_answer_generation/models/__init__.py b/survey_answer_generation/models/__init__.py new file mode 100644 index 00000000..7b981765 --- /dev/null +++ b/survey_answer_generation/models/__init__.py @@ -0,0 +1,3 @@ +from . import survey_question +from . import survey_user_input +from . import survey_survey diff --git a/survey_answer_generation/models/survey_question.py b/survey_answer_generation/models/survey_question.py new file mode 100644 index 00000000..b99bb735 --- /dev/null +++ b/survey_answer_generation/models/survey_question.py @@ -0,0 +1,27 @@ +# Copyright 2022 Tecnativa - David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class SurveyQuestion(models.Model): + _inherit = "survey.question" + + next_survey_id = fields.Many2one(related="survey_id.next_survey_id") + next_survey_question_id = fields.Many2one( + comodel_name="survey.question", + domain="[('survey_id', '=', next_survey_id), ('question_type', '=', question_type)]", + help="Prefill this answer of the next survey with the answer of this one", + ) + + +class SurveyLabel(models.Model): + _inherit = "survey.question.answer" + + next_survey_question_id = fields.Many2one( + related="question_id.next_survey_question_id" + ) + next_survey_question_answer_id = fields.Many2one( + comodel_name="survey.question.answer", + domain="[('question_id', '=', next_survey_question_id)]", + help="Prefill this answer of the next survey with the answer of this one", + ) diff --git a/survey_answer_generation/models/survey_survey.py b/survey_answer_generation/models/survey_survey.py new file mode 100644 index 00000000..ea76fc65 --- /dev/null +++ b/survey_answer_generation/models/survey_survey.py @@ -0,0 +1,42 @@ +# Copyright 2023 Tecnativa - David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class SurveySurvey(models.Model): + _inherit = "survey.survey" + + next_survey_id = fields.Many2one( + comodel_name="survey.survey", domain="[('id', '!=', id)]" + ) + + def _create_answer( + self, + user=False, + partner=False, + email=False, + test_entry=False, + check_attempts=True, + **additional_vals + ): + """We link the next user input right away so we can sync the responses when + they're submitted""" + user_inputs = super()._create_answer( + user=user, + partner=partner, + email=email, + test_entry=test_entry, + check_attempts=check_attempts, + **additional_vals + ) + for user_input in user_inputs.filtered("survey_id.next_survey_id"): + next_survey_input = user_input.survey_id.next_survey_id._create_answer( + user=user, + email=email, + test_entry=test_entry, + check_attempts=check_attempts, + **additional_vals + ) + user_input.next_survey_input_id = next_survey_input + next_survey_input.origin_input_id = user_input + return user_inputs diff --git a/survey_answer_generation/models/survey_user_input.py b/survey_answer_generation/models/survey_user_input.py new file mode 100644 index 00000000..37269b50 --- /dev/null +++ b/survey_answer_generation/models/survey_user_input.py @@ -0,0 +1,118 @@ +# Copyright 2022 Tecnativa - David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import _, api, fields, models +from odoo.tools import get_diff + + +class SurveyUserInput(models.Model): + _inherit = "survey.user_input" + + next_survey_input_id = fields.Many2one( + comodel_name="survey.user_input", readonly=True + ) + origin_input_id = fields.Many2one(comodel_name="survey.user_input", readonly=True) + diff_user_input_line_count = fields.Integer( + compute="_compute_diff_user_input_line_count" + ) + + def save_lines(self, question, answer, comment=None): + """Sync the answers for the next question when they're saved so we don't have + to repeat the logic again""" + res = super().save_lines(question, answer, comment=comment) + if question.next_survey_question_id and self.next_survey_input_id: + self.next_survey_input_id.with_context( + save_next_question_answer=True + ).save_lines(question.next_survey_question_id, answer, comment) + return res + + def _get_line_answer_values(self, question, answer, answer_type): + """Link the answers""" + vals = super()._get_line_answer_values(question, answer, answer_type) + if not self.env.context.get("save_next_question_answer"): + return vals + # Find out the next question answer id to save it instead of the current one + if answer_type == "suggestion": + suggested_answer_id = vals.get("suggested_answer_id") + if suggested_answer_id: + suggested_answer = self.env["survey.question.answer"].browse( + suggested_answer_id + ) + vals[ + "suggested_answer_id" + ] = suggested_answer.next_survey_question_answer_id.id + origin_line = self.origin_input_id.user_input_line_ids.filtered( + lambda x: x.question_id.next_survey_question_id == question + and x.answer_type == "suggestion" + and x.suggested_answer_id.id == suggested_answer_id + ) + else: + origin_line = self.origin_input_id.user_input_line_ids.filtered( + lambda x: x.question_id.next_survey_question_id == question + ) + if origin_line: + vals["origin_input_line"] = origin_line.id + return vals + + def _get_line_comment_values(self, question, comment): + """Comments go their own way""" + vals = super()._get_line_comment_values(question, comment) + if self.origin_input_id and ( + origin_line := self.origin_input_id.user_input_line_ids.filtered( + lambda x: x.question_id.next_survey_question_id == question + and x.answer_type == "char_box" + ) + ): + vals["origin_input_line"] = origin_line.id + return vals + + def _compute_diff_user_input_line_count(self): + self.diff_user_input_line_count = False + for user_input in self.filtered("origin_input_id"): + user_input.diff_user_input_line_count = len( + user_input.user_input_line_ids.filtered("diff_with_origin") + ) + + def _mark_done(self): + """Ensure that the contact info matches for both surveys""" + res = super()._mark_done() + if ( + self.next_survey_input_id + and self.next_survey_input_id.partner_id != self.partner_id + ): + self.next_survey_input_id.partner_id = self.partner_id + self.next_survey_input_id.email = self.email + return res + + +class SurveyUserInputLine(models.Model): + _inherit = "survey.user_input.line" + + origin_input_line = fields.Many2one(comodel_name="survey.user_input.line") + diff_with_origin = fields.Html( + compute="_compute_diff_with_origin", + store=True, + ) + + @api.depends( + *[ + f"value_{x}" + for x in {"char_box", "text_box", "numerical_box", "date", "datetime"} + ] + ) + def _compute_diff_with_origin(self): + """When two answers are linked the next survey question is prefilled. If the + user changes the answer in the next survey we want to spot the difference""" + self.diff_with_origin = False + for line in self.filtered("origin_input_line"): + if line.answer_type != "suggestion": + value = f"value_{line.answer_type}" + previous_value = str(line.origin_input_line[value]) + current_value = str(line[value]) + else: + current_value = line.suggested_answer_id.value + previous_value = line.origin_input_line.suggested_answer_id.value + if previous_value == current_value: + continue + line.diff_with_origin = get_diff( + (previous_value, _("Previous")), (current_value, _("Current")) + ) diff --git a/survey_answer_generation/readme/CONFIGURE.rst b/survey_answer_generation/readme/CONFIGURE.rst new file mode 100644 index 00000000..b90d7ef3 --- /dev/null +++ b/survey_answer_generation/readme/CONFIGURE.rst @@ -0,0 +1,9 @@ +You can configure either a new or an existing survey. + +#. Go to *Surveys* and choose an existing one or create it. +#. In the *Options* tab, *Questions* group, choose the *Next Survey*. + +Now you'll have to configure the destination questions linked to this survey's questions. + +#. Go to the *Answers* tab choose the linked question. +#. For simple/multiple choice qustions you'll have to link the answers as well. diff --git a/survey_answer_generation/readme/CONTRIBUTORS.rst b/survey_answer_generation/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..fedc8467 --- /dev/null +++ b/survey_answer_generation/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Tecnativa `_ + + * David Vidal diff --git a/survey_answer_generation/readme/DESCRIPTION.rst b/survey_answer_generation/readme/DESCRIPTION.rst new file mode 100644 index 00000000..411964cf --- /dev/null +++ b/survey_answer_generation/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to prefill answers from one survey to another. diff --git a/survey_answer_generation/readme/USAGE.rst b/survey_answer_generation/readme/USAGE.rst new file mode 100644 index 00000000..729fe12e --- /dev/null +++ b/survey_answer_generation/readme/USAGE.rst @@ -0,0 +1,6 @@ +Once the survey is configured, the users can fill them up as usual. The answers in the +next survey will be prefilled according to the linked questions. + +If the user changes any response in the next question, we can tell the difference in +the backend: go to the participation and in the answers tree let the column +*Diff with origin* show. diff --git a/survey_answer_generation/static/description/icon.png b/survey_answer_generation/static/description/icon.png new file mode 100644 index 00000000..ae0af814 Binary files /dev/null and b/survey_answer_generation/static/description/icon.png differ diff --git a/survey_answer_generation/static/description/index.html b/survey_answer_generation/static/description/index.html new file mode 100644 index 00000000..9ce9457a --- /dev/null +++ b/survey_answer_generation/static/description/index.html @@ -0,0 +1,449 @@ + + + + + + +Survey answer generation + + + +
+

Survey answer generation

+ + +

Beta License: AGPL-3 OCA/survey Translate me on Weblate Try me on Runboat

+

This module allows to prefill answers from one survey to another.

+

Table of contents

+ +
+

Configuration

+

You can configure either a new or an existing survey.

+
    +
  1. Go to Surveys and choose an existing one or create it.
  2. +
  3. In the Options tab, Questions group, choose the Next Survey.
  4. +
+

Now you’ll have to configure the destination questions linked to this survey’s questions.

+
    +
  1. Go to the Answers tab choose the linked question.
  2. +
  3. For simple/multiple choice qustions you’ll have to link the answers as well.
  4. +
+
+
+

Usage

+

Once the survey is configured, the users can fill them up as usual. The answers in the +next survey will be prefilled according to the linked questions.

+

If the user changes any response in the next question, we can tell the difference in +the backend: go to the participation and in the answers tree let the column +Diff with origin show.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

chienandalu

+

This module is part of the OCA/survey project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/survey_answer_generation/views/survey_question_views.xml b/survey_answer_generation/views/survey_question_views.xml new file mode 100644 index 00000000..a48f6af6 --- /dev/null +++ b/survey_answer_generation/views/survey_question_views.xml @@ -0,0 +1,25 @@ + + + + survey.question + + + + + + + + + + + + + + + diff --git a/survey_answer_generation/views/survey_survey_views.xml b/survey_answer_generation/views/survey_survey_views.xml new file mode 100644 index 00000000..77e607a8 --- /dev/null +++ b/survey_answer_generation/views/survey_survey_views.xml @@ -0,0 +1,12 @@ + + + + survey.survey + + + + + + + + diff --git a/survey_answer_generation/views/survey_user_input_views.xml b/survey_answer_generation/views/survey_user_input_views.xml new file mode 100644 index 00000000..6fcfef7f --- /dev/null +++ b/survey_answer_generation/views/survey_user_input_views.xml @@ -0,0 +1,43 @@ + + + + survey.user_input + + + + + + + + + diff_with_origin != False + + + + + + + +