Browse Source

[ADD] survey_question_duplicate module

12.0
Rémi FRANÇOIS 5 years ago
parent
commit
723fcd7e31
  1. 0
      survey_question_duplicate/__init__.py
  2. 32
      survey_question_duplicate/__manifest__.py
  3. 16
      survey_question_duplicate/views/survey_page.xml

0
survey_question_duplicate/__init__.py

32
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': '',
}

16
survey_question_duplicate/views/survey_page.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="survey_page_form" model="ir.ui.view">
<field name="name">survey_input_attachment survey.page form</field>
<field name="model">survey.page</field>
<field name="inherit_id" ref="survey.survey_page_form"/>
<field name="priority">20</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='question_ids']/tree" position="inside">
<button type="object" name="copy" string="Dupliquer" icon="fa-copy" class="oe_edit_only"/>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save