mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
quality_control: Some improvement
This commit is contained in:
committed by
Pedro M. Baeza
parent
697cba0946
commit
c50902f5e8
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user