[FIX] hint of which question is not valid in test

This commit is contained in:
Simone Rubino
2017-11-30 11:17:18 +01:00
parent 562d1173d6
commit 0bea4ac982
2 changed files with 3 additions and 7 deletions

View File

@@ -61,8 +61,8 @@ class QcTestQuestion(models.Model):
if (self.type == 'qualitative' and self.ql_values and
not self.ql_values.filtered('ok')):
raise exceptions.Warning(
_("There isn't no value marked as OK. You have to mark at "
"least one."))
_("Question %s has no value marked as OK. "
"You have to mark at least one.") % self.name_get()[0][1])
@api.one
@api.constrains('min_value', 'max_value')