22 lines
1.1 KiB
XML
22 lines
1.1 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
|
<odoo>
|
||
|
|
<record id="survey_question_form_view_inherit" model="ir.ui.view">
|
||
|
|
<field name="name">survey.question.form.inherit.answer_limit</field>
|
||
|
|
<field name="model">survey.question</field>
|
||
|
|
<field name="inherit_id" ref="survey.survey_question_form"/>
|
||
|
|
<field name="arch" type="xml">
|
||
|
|
<!-- Insert after suggested answers section for multiple_choice -->
|
||
|
|
<xpath expr="//field[@name='suggested_answer_ids']/../.." position="after">
|
||
|
|
<group
|
||
|
|
string="Answer Limits" invisible="question_type != 'multiple_choice'"
|
||
|
|
colspan="2"
|
||
|
|
>
|
||
|
|
<field name="validation_multiple_answers_min" required="validation_multiple_answers_max != False"/>
|
||
|
|
<field name="validation_multiple_answers_max"/>
|
||
|
|
<field name="validation_error_msg" colspan="2"
|
||
|
|
required="validation_multiple_answers_max != False"/>
|
||
|
|
</group>
|
||
|
|
</xpath>
|
||
|
|
</field>
|
||
|
|
</record>
|
||
|
|
</odoo>
|