diff --git a/medical_diagnostic_report/reports/medical_diagnostic_report_base.xml b/medical_diagnostic_report/reports/medical_diagnostic_report_base.xml
index e1faef83..d8d29b83 100644
--- a/medical_diagnostic_report/reports/medical_diagnostic_report_base.xml
+++ b/medical_diagnostic_report/reports/medical_diagnostic_report_base.xml
@@ -135,7 +135,7 @@
-
+
diff --git a/medical_diagnostic_report/views/medical_diagnostic_report_template.xml b/medical_diagnostic_report/views/medical_diagnostic_report_template.xml
index 3824f9bf..7047df47 100644
--- a/medical_diagnostic_report/views/medical_diagnostic_report_template.xml
+++ b/medical_diagnostic_report/views/medical_diagnostic_report_template.xml
@@ -138,14 +138,20 @@
string="Composition"
attrs="{'invisible': [('with_composition','=',False)]}"
>
-
+
-
+
diff --git a/medical_diagnostic_report/wizards/medical_diagnostic_report_template_print.py b/medical_diagnostic_report/wizards/medical_diagnostic_report_template_print.py
index 97b0da42..dad1c983 100644
--- a/medical_diagnostic_report/wizards/medical_diagnostic_report_template_print.py
+++ b/medical_diagnostic_report/wizards/medical_diagnostic_report_template_print.py
@@ -24,11 +24,12 @@ def _get_lang(self):
return self.env["res.lang"].get_installed()
def print(self):
+ report_dict = self.env["ir.actions.report"]._for_xml_id(
+ "medical_diagnostic_report.medical_diagnostic_report_template_preview"
+ )
return (
self.env["ir.actions.report"]
- ._for_xml_id(
- "medical_diagnostic_report.medical_diagnostic_report_template_preview"
- )
+ .browse(report_dict["id"])
.with_context(lang=self.lang, force_lang=self.lang)
.report_action(
self.diagnostic_template_id,