mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims/lims_instrument: add result modifier 'Detected'
This commit is contained in:
parent
9f745b3485
commit
b2881c4197
|
@ -370,6 +370,10 @@ msgctxt "model:ir.message,text:msg_abs"
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt "model:ir.message,text:msg_d"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt "model:ir.message,text:msg_obs_rm_c_f"
|
msgctxt "model:ir.message,text:msg_obs_rm_c_f"
|
||||||
msgid "Elements results are reported without recovery correction."
|
msgid "Elements results are reported without recovery correction."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -10258,6 +10262,11 @@ msgctxt ""
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt ""
|
||||||
|
"selection:lims.notebook.internal_relations_calc_2.variable,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt ""
|
msgctxt ""
|
||||||
"selection:lims.notebook.internal_relations_calc_2.variable,result_modifier:"
|
"selection:lims.notebook.internal_relations_calc_2.variable,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
|
@ -10324,6 +10333,10 @@ msgctxt "selection:lims.notebook.line,result_modifier:"
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt "selection:lims.notebook.line,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt "selection:lims.notebook.line,result_modifier:"
|
msgctxt "selection:lims.notebook.line,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
msgstr "Negativo"
|
msgstr "Negativo"
|
||||||
|
@ -10384,6 +10397,10 @@ msgctxt "selection:lims.notebook.line.all_fields,result_modifier:"
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt "selection:lims.notebook.line.all_fields,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt "selection:lims.notebook.line.all_fields,result_modifier:"
|
msgctxt "selection:lims.notebook.line.all_fields,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
msgstr "Negativo"
|
msgstr "Negativo"
|
||||||
|
@ -10420,6 +10437,10 @@ msgctxt "selection:lims.notebook.load_results_formula.action,result_modifier:"
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt "selection:lims.notebook.load_results_formula.action,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt "selection:lims.notebook.load_results_formula.action,result_modifier:"
|
msgctxt "selection:lims.notebook.load_results_formula.action,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
msgstr "Negativo"
|
msgstr "Negativo"
|
||||||
|
@ -10459,6 +10480,11 @@ msgctxt ""
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt ""
|
||||||
|
"selection:lims.notebook.load_results_formula.process,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt ""
|
msgctxt ""
|
||||||
"selection:lims.notebook.load_results_formula.process,result_modifier:"
|
"selection:lims.notebook.load_results_formula.process,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
|
@ -10501,6 +10527,10 @@ msgctxt "selection:lims.notebook.load_results_manual.line,result_modifier:"
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt "selection:lims.notebook.load_results_manual.line,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt "selection:lims.notebook.load_results_manual.line,result_modifier:"
|
msgctxt "selection:lims.notebook.load_results_manual.line,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
msgstr "Negativo"
|
msgstr "Negativo"
|
||||||
|
@ -10660,6 +10690,10 @@ msgctxt "selection:lims.results_report.version.detail.line,result_modifier:"
|
||||||
msgid "Absence"
|
msgid "Absence"
|
||||||
msgstr "Ausencia"
|
msgstr "Ausencia"
|
||||||
|
|
||||||
|
msgctxt "selection:lims.results_report.version.detail.line,result_modifier:"
|
||||||
|
msgid "Detected"
|
||||||
|
msgstr "Detectado"
|
||||||
|
|
||||||
msgctxt "selection:lims.results_report.version.detail.line,result_modifier:"
|
msgctxt "selection:lims.results_report.version.detail.line,result_modifier:"
|
||||||
msgid "Negative"
|
msgid "Negative"
|
||||||
msgstr "Negativo"
|
msgstr "Negativo"
|
||||||
|
|
|
@ -301,6 +301,9 @@
|
||||||
<record model="ir.message" id="msg_pos">
|
<record model="ir.message" id="msg_pos">
|
||||||
<field name="text">Positive</field>
|
<field name="text">Positive</field>
|
||||||
</record>
|
</record>
|
||||||
|
<record model="ir.message" id="msg_d">
|
||||||
|
<field name="text">Detected</field>
|
||||||
|
</record>
|
||||||
<record model="ir.message" id="msg_nd">
|
<record model="ir.message" id="msg_nd">
|
||||||
<field name="text">Not detected</field>
|
<field name="text">Not detected</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
|
@ -298,6 +298,7 @@ class NotebookLine(ModelSQL, ModelView):
|
||||||
result_modifier = fields.Selection([
|
result_modifier = fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -720,9 +721,9 @@ class NotebookLine(ModelSQL, ModelView):
|
||||||
elif not (self.result or self.converted_result or
|
elif not (self.result or self.converted_result or
|
||||||
self.literal_result or
|
self.literal_result or
|
||||||
self.result_modifier in
|
self.result_modifier in
|
||||||
('nd', 'pos', 'neg', 'ni', 'abs', 'pre') or
|
('d', 'nd', 'pos', 'neg', 'ni', 'abs', 'pre') or
|
||||||
self.converted_result_modifier in
|
self.converted_result_modifier in
|
||||||
('nd', 'pos', 'neg', 'ni', 'abs', 'pre')):
|
('d', 'nd', 'pos', 'neg', 'ni', 'abs', 'pre')):
|
||||||
self.accepted = False
|
self.accepted = False
|
||||||
self.not_accepted_message = gettext('lims.msg_not_accepted_4')
|
self.not_accepted_message = gettext('lims.msg_not_accepted_4')
|
||||||
else:
|
else:
|
||||||
|
@ -939,6 +940,7 @@ class NotebookLineAllFields(ModelSQL, ModelView):
|
||||||
result_modifier = fields.Selection([
|
result_modifier = fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -2000,6 +2002,7 @@ class NotebookInternalRelationsCalc2Variable(ModelSQL, ModelView):
|
||||||
result_modifier = fields.Function(fields.Selection([
|
result_modifier = fields.Function(fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -2488,6 +2491,7 @@ class NotebookLoadResultsFormulaAction(ModelSQL):
|
||||||
result_modifier = fields.Selection([
|
result_modifier = fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -2534,6 +2538,7 @@ class NotebookLoadResultsFormulaProcess(ModelView):
|
||||||
result_modifier = fields.Selection([
|
result_modifier = fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -3240,6 +3245,7 @@ class NotebookLoadResultsManualLine(ModelSQL, ModelView):
|
||||||
result_modifier = fields.Selection([
|
result_modifier = fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -3954,9 +3960,9 @@ class NotebookAcceptLines(Wizard):
|
||||||
if not (notebook_line.result or notebook_line.converted_result or
|
if not (notebook_line.result or notebook_line.converted_result or
|
||||||
notebook_line.literal_result or
|
notebook_line.literal_result or
|
||||||
notebook_line.result_modifier in
|
notebook_line.result_modifier in
|
||||||
('nd', 'pos', 'neg', 'ni', 'abs', 'pre') or
|
('d', 'nd', 'pos', 'neg', 'ni', 'abs', 'pre') or
|
||||||
notebook_line.converted_result_modifier in
|
notebook_line.converted_result_modifier in
|
||||||
('nd', 'pos', 'neg', 'ni', 'abs', 'pre')):
|
('d', 'nd', 'pos', 'neg', 'ni', 'abs', 'pre')):
|
||||||
continue
|
continue
|
||||||
if (notebook_line.converted_result and
|
if (notebook_line.converted_result and
|
||||||
notebook_line.converted_result_modifier
|
notebook_line.converted_result_modifier
|
||||||
|
|
|
@ -855,6 +855,7 @@ class ResultsReportVersionDetailLine(ModelSQL, ModelView):
|
||||||
result_modifier = fields.Function(fields.Selection([
|
result_modifier = fields.Function(fields.Selection([
|
||||||
('eq', '='),
|
('eq', '='),
|
||||||
('low', '<'),
|
('low', '<'),
|
||||||
|
('d', 'Detected'),
|
||||||
('nd', 'nd'),
|
('nd', 'nd'),
|
||||||
('na', 'na'),
|
('na', 'na'),
|
||||||
('pos', 'Positive'),
|
('pos', 'Positive'),
|
||||||
|
@ -2810,6 +2811,8 @@ class ResultReport(Report):
|
||||||
elif result_modifier == 'low':
|
elif result_modifier == 'low':
|
||||||
res = gettext('lims.msg_quantification_limit', loq=res)
|
res = gettext('lims.msg_quantification_limit', loq=res)
|
||||||
obs_ql = True
|
obs_ql = True
|
||||||
|
elif result_modifier == 'd':
|
||||||
|
res = gettext('lims.msg_d')
|
||||||
elif result_modifier == 'nd':
|
elif result_modifier == 'nd':
|
||||||
res = gettext('lims.msg_nd')
|
res = gettext('lims.msg_nd')
|
||||||
elif result_modifier == 'ni':
|
elif result_modifier == 'ni':
|
||||||
|
@ -2838,6 +2841,8 @@ class ResultReport(Report):
|
||||||
res = res
|
res = res
|
||||||
elif result_modifier == 'low':
|
elif result_modifier == 'low':
|
||||||
res = '< %s' % res
|
res = '< %s' % res
|
||||||
|
elif result_modifier == 'd':
|
||||||
|
res = gettext('lims.msg_d')
|
||||||
elif result_modifier == 'nd':
|
elif result_modifier == 'nd':
|
||||||
res = gettext('lims.msg_nd')
|
res = gettext('lims.msg_nd')
|
||||||
elif result_modifier == 'pos':
|
elif result_modifier == 'pos':
|
||||||
|
@ -2874,6 +2879,8 @@ class ResultReport(Report):
|
||||||
res = gettext('lims.msg_pre')
|
res = gettext('lims.msg_pre')
|
||||||
elif converted_result_modifier == 'abs':
|
elif converted_result_modifier == 'abs':
|
||||||
res = gettext('lims.msg_abs')
|
res = gettext('lims.msg_abs')
|
||||||
|
elif converted_result_modifier == 'd':
|
||||||
|
res = gettext('lims.msg_d')
|
||||||
elif converted_result_modifier == 'nd':
|
elif converted_result_modifier == 'nd':
|
||||||
res = gettext('lims.msg_nd')
|
res = gettext('lims.msg_nd')
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -344,10 +344,10 @@ class NotebookLoadResultsFile(Wizard):
|
||||||
('result', 'in', [None, '']),
|
('result', 'in', [None, '']),
|
||||||
('converted_result', 'in', [None, '']),
|
('converted_result', 'in', [None, '']),
|
||||||
('literal_result', 'in', [None, '']),
|
('literal_result', 'in', [None, '']),
|
||||||
('result_modifier', 'not in', ['nd', 'pos', 'neg',
|
('result_modifier', 'not in', ['d', 'nd', 'pos',
|
||||||
'ni', 'abs', 'pre', 'na']),
|
'neg', 'ni', 'abs', 'pre', 'na']),
|
||||||
('converted_result_modifier', 'not in',
|
('converted_result_modifier', 'not in',
|
||||||
['nd', 'pos', 'neg', 'ni', 'abs', 'pre']),
|
['d', 'nd', 'pos', 'neg', 'ni', 'abs', 'pre']),
|
||||||
]
|
]
|
||||||
line = NotebookLine.search(clause)
|
line = NotebookLine.search(clause)
|
||||||
if line:
|
if line:
|
||||||
|
|
Loading…
Reference in a new issue