survey_scoring_extended/views/survey_question_views.xml
2026-05-15 17:34:29 +07:00

18 lines
907 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="survey_question_view_form" model="ir.ui.view">
<field name="name">survey.question.view.form.inherit.scale.multiplier</field>
<field name="model">survey.question</field>
<field name="inherit_id" ref="survey.survey_question_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='scale_max']" position="after">
<field name="scale_multiplier" invisible="question_type != 'scale'"/>
</xpath>
<!-- Ensure is_scored_question is visible for scale -->
<xpath expr="//div[@name='survey_scored_question']/.." position="attributes">
<attribute name="invisible">scoring_type == 'no_scoring' or question_type not in ['numerical_box', 'date', 'datetime', 'scale']</attribute>
</xpath>
</field>
</record>
</odoo>