From 0bea4ac982f1eaa92fc351ad0798746ebca7f87d Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Thu, 30 Nov 2017 11:17:18 +0100 Subject: [PATCH] [FIX] hint of which question is not valid in test --- quality_control/__manifest__.py | 6 +----- quality_control/models/qc_test.py | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/quality_control/__manifest__.py b/quality_control/__manifest__.py index e80913b30..341d82ab2 100644 --- a/quality_control/__manifest__.py +++ b/quality_control/__manifest__.py @@ -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": [ diff --git a/quality_control/models/qc_test.py b/quality_control/models/qc_test.py index 75a4bacf8..9bb1ec1a1 100644 --- a/quality_control/models/qc_test.py +++ b/quality_control/models/qc_test.py @@ -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')