[FIX] survey : reset is_time_limited on scoring type change

add is_time_limited in the reset values of the onchange.

Tass ID : 1930132
PR #32419
This commit is contained in:
David Beguin
2019-11-19 12:50:53 +00:00
parent 4f59004a0f
commit 52a6b00fa7
+1
View File
@@ -169,6 +169,7 @@ class Survey(models.Model):
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):