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:
@@ -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": [
|
||||
|
||||
@@ -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