summaryrefslogtreecommitdiff
path: root/addons/website_event_questions/views/event_registration_views.xml
blob: e2ff64cc14c290da1c73858996f8cf846e9502b6 (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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="event_registration_view_form_inherit_question" model="ir.ui.view">
        <field name="name">event.registration.view.form.inherit.question</field>
        <field name="model">event.registration</field>
        <field name="inherit_id" ref="event.view_event_registration_form" />
        <field name="arch" type="xml">
            <sheet position="inside">
                <notebook>
                    <page string="Questions" name="questions">
                        <field name="registration_answer_ids" widget="one2many">
                            <tree editable="bottom">
                                <field name="event_id" invisible="1" />
                                <field name="question_id" domain="[('event_id', '=', event_id)]" options="{'no_create': True}" />
                                <field name="question_type" string="Type" />
                                <field name="value_answer_id"
                                    attrs="{'invisible': [('question_type', '!=', 'simple_choice')]}"
                                    domain="[('question_id', '=', question_id)]" options="{'no_create': True}"/>
                                <field name="value_text_box" attrs="{'invisible': [('question_type', '!=', 'text_box')]}" />
                            </tree>
                        </field>
                    </page>
                </notebook>
            </sheet>
        </field>
    </record>
</odoo>