summaryrefslogtreecommitdiff
path: root/addons/website_event_questions/views/event_question_views.xml
blob: 3fec664ea5b12dc85da58065eb0e4658635a767b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="event_question_view_form" model="ir.ui.view">
        <field name="name">event.question.view.form</field>
        <field name="model">event.question</field>
        <field name="arch" type="xml">
            <form string="Question">
                <sheet>
                    <h1><field name="title" /></h1>
                    <group>
                        <group>
                            <div colspan="2">
                                <field name="once_per_order"/>
                                <label for="once_per_order"/>
                            </div>
                            <field name="question_type" widget="radio" options="{'horizontal': true}" />
                        </group>
                    </group>
                    <notebook attrs="{'invisible': [('question_type', '!=', 'simple_choice')]}">
                        <page string="Answers" name="answers">
                            <field name="answer_ids">
                                <tree editable="bottom">
                                    <!-- 'display_name' is necessary for the many2many_tags to work on the event view -->
                                    <field name="display_name" invisible="1" />
                                    <field name="sequence" widget="handle" />
                                    <field name="name"/>
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        </field>
    </record>
</odoo>