Browse Source

[FIX] emc: footer for report

pull/56/head
Rémy Taymans 5 years ago
parent
commit
f2647c0abd
  1. 36
      easy_my_coop/report/layout.xml

36
easy_my_coop/report/layout.xml

@ -5,6 +5,42 @@
<xpath expr="//div[hasclass('header')]//div//img" position="replace">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="min-height: 75px; max-height: 75px" alt="Logo"/>
</xpath>
<xpath expr="//div[hasclass('o_standard_footer')]" position="attributes">
<attribute name="style">display: none;</attribute>
</xpath>
<xpath expr="//div[hasclass('footer', 'o_standard_footer')]" position="before">
<div class="footer o_emc_footer" name="footer" style="font-size: 0.8em;">
<div class="row">
<div t-att-class="'text-center col-10' if company.display_logo1 or company.display_logo2 else 'text-center col'">
<ul class="list-inline mb4">
<li t-if="company.phone" class="list-inline-item">Phone: <span t-field="company.phone"/></li>
<li t-if="company.email" class="list-inline-item">Email: <span t-field="company.email"/></li>
<li t-if="company.website" class="list-inline-item">Web: <span t-field="company.website"/></li>
<li t-if="company.vat" class="list-inline-item"><t t-esc="company.country_id.vat_label or 'Tax ID'"/>: <span t-field="company.vat"/></li>
</ul>
<div name="financial_infos">
<span t-field="company.report_footer"/>
</div>
<div t-if="report_type == 'pdf'" class="text-muted text-center">
Page: <span class="page"/> / <span class="topage"/>
</div>
</div>
<div name="logos" class="col-2 text-center" t-if="company.display_logo1 or company.display_logo2">
<img class="img img-responsive"
t-if="company.display_logo1"
t-attf-src="data:image/*;base64,{{company.bottom_logo1}}"
style="display: block; margin: auto; max-width: 100%; max-height: 3em;"/>
<img class="img img-responsive"
t-if="company.display_logo2"
t-attf-src="data:image/*;base64,{{company.bottom_logo2}}"
style="display: block; margin: auto; max-width: 100%; max-height: 3em;"/>
</div>
</div>
</div>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save