diff --git a/quality_control_oca/i18n/es.po b/quality_control_oca/i18n/es.po index 105f25444..ce6bcfa79 100644 --- a/quality_control_oca/i18n/es.po +++ b/quality_control_oca/i18n/es.po @@ -91,7 +91,7 @@ msgstr "Confirmar" #. module: quality_control #: field:qc.posible.value,ok:0 msgid "Correct answer" -msgstr "Correct answer" +msgstr "Respuesta correcta" #. module: quality_control #: field:qc.posible.value,create_uid:0 @@ -681,14 +681,8 @@ msgstr "Esperando aprobación del supervisor" #. module: quality_control #: help:qc.posible.value,ok:0 -msgid "" -"When this field is True, the answer\n" -" is correct, When is False the answer\n" -" is not correct." -msgstr "" -"Cuando este campo es verdadera, la respuesta\n" -" es correcta, cuando es falso la respuesta\n" -" es incorrecta." +msgid "When this field is marked, the answer is considered correct." +msgstr "Cuando este campo está marcado, la respuesta se considera correcta." #. module: quality_control #: view:qc.test.template.line:quality_control.qc_test_template_line_form_view diff --git a/quality_control_oca/i18n/quality_control.pot b/quality_control_oca/i18n/quality_control.pot index 949e62e5e..cf37cd3da 100644 --- a/quality_control_oca/i18n/quality_control.pot +++ b/quality_control_oca/i18n/quality_control.pot @@ -681,9 +681,7 @@ msgstr "" #. module: quality_control #: help:qc.posible.value,ok:0 -msgid "When this field is True, the answer\n" -" is correct, When is False the answer\n" -" is not correct." +msgid "When this field is marked, the answer is considered correct." msgstr "" #. module: quality_control diff --git a/quality_control_oca/models/quality_control.py b/quality_control_oca/models/quality_control.py index e780a745b..e1996b5bd 100644 --- a/quality_control_oca/models/quality_control.py +++ b/quality_control_oca/models/quality_control.py @@ -44,7 +44,7 @@ class QcProofMethod(orm.Model): _columns = { 'name': fields.char('Name', size=100, required=True, select="1", translate=True), - 'active': fields.boolean('Active', select="1"), + 'active': fields.boolean('Active'), } _defaults = { @@ -61,11 +61,10 @@ class QcPosibleValue(orm.Model): _columns = { 'name': fields.char('Name', size=200, required=True, select="1", translate=True), - 'active': fields.boolean('Active', select="1"), + 'active': fields.boolean('Active'), 'ok': fields.boolean('Correct answer', - help="When this field is True, the answer\n" - " is correct, When is False the answer\n" - " is not correct."), + help="When this field is marked, the answer " + "is considered correct."), } _defaults = { @@ -114,7 +113,7 @@ class QcProof(orm.Model): 'name': fields.char('Name', size=200, required=True, select="1", translate=True), 'ref': fields.char('Code', size=30, select="1"), - 'active': fields.boolean('Active', select="1"), + 'active': fields.boolean('Active'), 'synonym_ids': fields.one2many('qc.proof.synonym', 'proof_id', 'Synonyms'), 'type': fields.selection([('qualitative', 'Qualitative'), @@ -128,7 +127,7 @@ class QcProof(orm.Model): } _defaults = { - 'active': lambda *a: True, + 'active': True, } _sql_constraints = [ @@ -509,7 +508,7 @@ class QcTest(orm.Model): fill = test.test_template_id.fill_correct_values for line in test.test_template_id.test_template_line_ids: data = self._prepare_test_line( - cr, uid, test, line, fill=fill or force_fill, context=context) + cr, uid, test, line, fill=fill or force_fill, context=context) new_data.append((0, 0, data)) return new_data