You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

78 lines
3.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="emc_external_layout_standard"
inherit_id="web.external_layout_standard" primary="True">
<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>
<template
id="emc_external_layout_larger_logo"
inherit_id="easy_my_coop.emc_external_layout_standard"
primary="True">
<!--
This template should be used with the special paperformat
that extend margin. See paperformat in data.
-->
<xpath expr="//div[hasclass('header')]//div//img" position="attributes">
<attribute name="style">min-height: 75px; max-height: 75px;
</attribute>
</xpath>
</template>
</odoo>