mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] hint of which question is not valid in test
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user