Browse Source

[IMP] change widget

12.0
Rémi FRANÇOIS 4 years ago
parent
commit
ad9b9c6fa0
  1. 2
      survey_input_attachment/__manifest__.py
  2. 2
      survey_select_input/views/survey_user_input.xml

2
survey_input_attachment/__manifest__.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Survey Attachment',
'name': 'Survey input attachment',
'version': '1.0.0',
'summary': """
This module provides a new type of question in surveys, that allows to join a file as answer.

2
survey_select_input/views/survey_user_input.xml

@ -24,7 +24,7 @@
<field name="priority">26</field>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="selected" widget="boolean_toggle" attrs="{'invisible':['|',('test_entry','=',True),('state','!=','done')]}"/>
<field name="selected" widget="toggle_button" attrs="{'invisible':['|',('test_entry','=',True),('state','!=','done')]}"/>
</field>
</field>
</record>

Loading…
Cancel
Save