62 lines
2.2 KiB
XML
62 lines
2.2 KiB
XML
<?xml version="1.0"?>
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div id="informations" position="replace">
|
|
|
|
<style>
|
|
div#informations p {
|
|
margin-bottom: 0rem;
|
|
}
|
|
div#informations div {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
<div id="informations">
|
|
<table class="table table-borderless table-sm">
|
|
<tr>
|
|
<td>
|
|
<t t-if="o.move_type == 'out_invoice'"><strong class="mr-2">Rechnungsdatum:</strong></t>
|
|
<t t-elif="o.move_type == 'out_refund'"><strong class="mr-2">Gutschriftdatum:</strong></t>
|
|
<t t-elif="o.move_type == 'out_receipt'"><strong class="mr-2">Quittungsdatum:</strong></t>
|
|
<t t-else=""><strong>Datum:</strong></t>
|
|
<span t-field="o.invoice_date" t-options='{"widget": "date"}' />
|
|
</td>
|
|
<td>
|
|
<strong class="mr-2">Zahlungsbedingungen:</strong>
|
|
<span t-field="o.invoice_payment_term_id" />
|
|
</td>
|
|
<t t-set="partner_contact_id" t-value="o.invoice_line_ids.sale_line_ids.order_id.mapped('partner_contact_id')[:1]" />
|
|
<td t-if="partner_contact_id">
|
|
<strong class="mr-2">Ihr Kontakt:</strong>
|
|
<span t-field="partner_contact_id.name" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'">
|
|
<strong class="mr-2 ml-1">Fälligkeitsdatum:</strong>
|
|
<span t-field="o.invoice_date_due" t-options='{"widget": "date"}' />
|
|
</td><td t-else=""></td>
|
|
<td>
|
|
<strong class="mr-2">Unser Kontakt:</strong>
|
|
<span t-field="o.invoice_user_id.name" />
|
|
</td>
|
|
<td rowspan="2">
|
|
<div><strong class="mr-2 ml-1">Ihre Referenz:</strong></div>
|
|
<div t-field="o.ref" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<t t-set="order_id" t-value="o.invoice_line_ids.sale_line_ids.mapped('order_id')[:1]" />
|
|
<td colspan="2">
|
|
<strong class="mr-2">Unsere Referenz:</strong>
|
|
<span t-field="order_id.name" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</data> |