38 lines
1.8 KiB
XML
38 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="survey_question_form" model="ir.ui.view">
|
|
<field name="model">survey.question</field>
|
|
<field name="inherit_id" ref="survey.survey_question_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='comments_allowed']/.." position="after">
|
|
<group name="event_registration" string="Event registration">
|
|
<field name="event_product_question_id" options="{'no_open': True, 'no_create': True}"
|
|
attrs="{'invisible': [('question_type','!=','event')]}"
|
|
help="Select the question asking for event product, to filter proposed events." />
|
|
<field name="event_registration_field" widget="selection" />
|
|
<field name="event_registration_allowed_field_ids" invisible="1" />
|
|
</group>
|
|
</xpath>
|
|
|
|
|
|
<xpath expr="//field[@name='suggested_answer_ids']" position="attributes">
|
|
<attribute
|
|
name="context"
|
|
>{'default_question_id': active_id, 'default_event_registration_field': event_registration_field}</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//field[@name='suggested_answer_ids']//field[@name='value']"
|
|
position="after"
|
|
>
|
|
<field name="event_registration_field" invisible="1" />
|
|
<field
|
|
name="event_registration_field_resource_ref"
|
|
readonly="False"
|
|
options="{'hide_model': True, 'no_create': True, 'no_edit': True, 'no_open': True}"
|
|
attrs="{'column_invisible': [('parent.event_registration_field', '=', False)]}"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|