[FIX] survey: hide limit attempt field when survey_type is live_session
fix-up of https://github.com/odoo/odoo/commit/a0a78f807abd15cb64994aa626a48a0589e16570 Currently, When a user selects 'Live Survey' as the survey type, the `is_attemps_limited` field is visible although it should be hidden. This commit fixes this issue by hiding the field when the survey type is set to 'Live survey'. Along with that, this commit also removes the condition that hides the `is_attemps_limited` field when there is/are conditional question(s) in the survey. TaskID-3326930 closes odoo/odoo#123596 X-original-commit: d5d0b97b9ada57f43b026da758a0f0044519f460 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -107,9 +107,9 @@
|
||||
attrs="{'readonly': [('survey_type', '=', 'live_session')]}"/>
|
||||
<field name="users_login_required"/>
|
||||
<label for="is_attempts_limited" string="Limit Attempts"
|
||||
attrs="{'invisible': ['|', '|', ('survey_type', '=', 'live_session'), ('has_conditional_questions', '=', True), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}"/>
|
||||
attrs="{'invisible': ['|', ('survey_type', '=', 'live_session'), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}"/>
|
||||
<div class="o_checkbox_optional_field"
|
||||
attrs="{'invisible': ['|', ('has_conditional_questions', '=', True), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}">
|
||||
attrs="{'invisible': ['|', ('survey_type', '=', 'live_session'), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}">
|
||||
<field name="is_attempts_limited" nolabel="1"/>
|
||||
<div attrs="{'invisible': [('is_attempts_limited', '=', False)]}">
|
||||
to <field name="attempts_limit" nolabel="1" class="oe_inline"/> attempts
|
||||
|
||||
Reference in New Issue
Block a user