Browse Source

[IMP] change widget

12.0
Rémi FRANÇOIS 5 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 -*- # -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Survey Attachment',
'name': 'Survey input attachment',
'version': '1.0.0', 'version': '1.0.0',
'summary': """ 'summary': """
This module provides a new type of question in surveys, that allows to join a file as answer. 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="priority">26</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="state" position="after"> <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>
</field> </field>
</record> </record>

Loading…
Cancel
Save