From 723fcd7e31ec015a8a3fbb4a5fecc52cdb2a3da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20FRAN=C3=87OIS?= Date: Thu, 9 Apr 2020 17:50:27 +0200 Subject: [PATCH] [ADD] survey_question_duplicate module --- survey_question_duplicate/__init__.py | 0 survey_question_duplicate/__manifest__.py | 32 +++++++++++++++++++ .../views/survey_page.xml | 16 ++++++++++ 3 files changed, 48 insertions(+) create mode 100644 survey_question_duplicate/__init__.py create mode 100644 survey_question_duplicate/__manifest__.py create mode 100644 survey_question_duplicate/views/survey_page.xml diff --git a/survey_question_duplicate/__init__.py b/survey_question_duplicate/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/survey_question_duplicate/__manifest__.py b/survey_question_duplicate/__manifest__.py new file mode 100644 index 0000000..752cec4 --- /dev/null +++ b/survey_question_duplicate/__manifest__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + 'name': 'Survey question duplicate', + 'version': '1.0.0', + 'summary': """ + This module adds a \"Copy\" button in question lines on survey page form, only in edit mode. + """, + 'description': """ """, + 'author': 'Sudokeys', + 'website': 'http://www.sudokeys.com/', + 'license': 'AGPL-3', + 'category': 'Marketing', + 'depends': [ + 'survey', + ], + 'data': [ + 'views/survey_page.xml', + ], + 'demo': [], + 'auto_install': False, + 'external_dependencies': [], + 'application': False, + 'css': [], + 'images': ['static/description/survey.jpg'], + 'js': [], + 'installable': True, + 'maintainer': 'Sudokeys', + 'pre_init_hook': '', + 'post_init_hook': '', + 'uninstall_hook': '', +} diff --git a/survey_question_duplicate/views/survey_page.xml b/survey_question_duplicate/views/survey_page.xml new file mode 100644 index 0000000..971afd9 --- /dev/null +++ b/survey_question_duplicate/views/survey_page.xml @@ -0,0 +1,16 @@ + + + + + survey_input_attachment survey.page form + survey.page + + 20 + + +