Skip to content

Commit

Permalink
[IMP] Minor view style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luisDIXMIT committed May 17, 2024
1 parent 63bdcde commit 0f08361
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<div>
<t t-set="observations" t-value="doc.observation_ids" />
<t t-if="doc.with_observation and observations">
<table class="table table-condensed">
<table class="table table-condensed" style="border: white">
<tbody>
<div>
<t t-foreach="observations" t-as="obs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,20 @@
string="Composition"
attrs="{'invisible': [('with_composition','=',False)]}"
>
<field name="composition" />
<field
name="composition"
options="{'style-inline': true, 'codeview': true, 'dynamic_placeholder': true}"
/>
</page>
<page
name="conclusions"
string="Conclusions"
attrs="{'invisible': [('with_conclusion','=',False)]}"
>
<field name="conclusion" />
<field
name="conclusion"
options="{'style-inline': true, 'codeview': true, 'dynamic_placeholder': true}"
/>
</page>
</notebook>
</sheet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0f08361

Please sign in to comment.