[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

@@ -8,14 +8,10 @@
{
"name": "Quality control",
"version": "10.0.1.0.0",
"version": "10.0.1.0.1",
"category": "Quality control",
"license": "AGPL-3",
"author": "OdooMRP team, "
"AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Eficent, "
"Agile Business Group, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture/tree/10.0/quality_control",
"depends": [

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')