lims_diagnosis: get diagnosis template from the report template associated

with the analysis group
This commit is contained in:
Adrián Bernardi 2020-11-11 13:19:58 -03:00
parent 291873d21a
commit c3e2cb5930

View file

@ -70,7 +70,7 @@ class ResultsReportVersionDetail(metaclass=PoolMeta):
diagnostician = notebook.fraction.sample.diagnostician
if diagnostician:
detail_default['diagnostician'] = diagnostician.id
result_template = notebook.fraction.sample.result_template
result_template = cls._get_result_template_from_sample(notebook)
if result_template and result_template.diagnosis_template:
detail_default['diagnosis_template'] = (
result_template.diagnosis_template.id)