Skip to content

Commit

Permalink
[FIX] survey : reset is_time_limited on scoring type change
Browse files Browse the repository at this point in the history
add is_time_limited in the reset values of the onchange.

Tass ID : 1930132
PR odoo#32419
  • Loading branch information
dbeguin committed Nov 19, 2019
1 parent eae9055 commit 9c23ef9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/survey/models/survey_survey.py
Expand Up @@ -169,6 +169,7 @@ def _onchange_passing_score(self):
def _onchange_scoring_type(self):
if self.scoring_type == 'no_scoring':
self.certificate = False
self.is_time_limited = False

@api.onchange('users_login_required', 'access_mode')
def _onchange_access_mode(self):
Expand Down

0 comments on commit 9c23ef9

Please sign in to comment.