L10n Din5008
External Layout Din5008
Footer
ID: mint_system.l10n_din5008.external_layout_din5008.footer
<?xml version="1.0"?>
<data inherit_id="l10n_din5008.external_layout_din5008" priority="50">
<xpath expr="//div[@class='company_details']/table" position="replace">
<table class="table-borderless">
<tr>
<td>
<ul class="list-inline text-nowrap">
<li t-if="company.company_details">
<span t-field="company.company_details"/>
</li>
</ul>
</td>
<td>
<ul class="list-inline">
<li t-if="company.report_footer">
<span t-field="company.report_footer"/>
</li>
</ul>
</td>
<td t-if="company.partner_id.bank_ids">
<ul class="list-inline">
<t t-foreach="company.partner_id.bank_ids[:1]" t-as="partner_bank">
<li>BIC: <span t-field="partner_bank.bank_bic"/>
</li>
</t>
<t t-foreach="company.partner_id.bank_ids[:2]" t-as="bank">
<li>
<span t-field="bank.currency_id"/>
: <span t-field="bank.acc_number"/>
</li>
</t>
</ul>
</td>
<td>
<ul class="list-inline">
<li>CH: UID <span t-field="company.vat"/>
</li>
<li>DE: USt-IdNr. <span t-field="company.company_registry"/>
</li>
</ul>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/l10n_din5008.external_layout_din5008.footer.xml
Header
ID: mint_system.l10n_din5008.external_layout_din5008.header
<?xml version="1.0"?>
<data inherit_id="l10n_din5008.external_layout_din5008" priority="50">
<xpath expr="//table[@class='company_header table-borderless']" position="replace">
<table class="company_header table-borderless" t-att-style="'height: %dmm;' % (din_header_spacing or 27)">
<tr>
<td>
<div class="h3 mt0" t-field="company.report_header"/>
</td>
<td style="width: 30%;"/>
<td style="width: 40%;">
<table style="width: 40%;">
<tr>
<td style="width: 40%; text-align: center;">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" t-att-style="'max-height: 40mm;' 'display: inline-block;'"/>
</td>
</tr>
</table>
<td style="width: 30%;"/>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/l10n_din5008.external_layout_din5008.header.xml