100 lines
2.1 KiB
XML
100 lines
2.1 KiB
XML
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='informations']" position="replace">
|
|
<style>
|
|
table#info {
|
|
width: 100%;
|
|
margin-bottom: 45px;
|
|
font-size: 11pt;
|
|
}
|
|
table#info tr {
|
|
line-height: 1.2;
|
|
text-align: left;
|
|
}
|
|
.note {
|
|
font-size: 9pt;
|
|
}
|
|
</style>
|
|
<table id="info">
|
|
|
|
<tr>
|
|
<td>
|
|
Contact Number:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.partner_id.id"/>
|
|
</td>
|
|
<td>
|
|
Date:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.invoice_date"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Get all sale orders without duplicates -->
|
|
<t t-set="sale_orders" t-value="list(set([line.order_id for line in o.invoice_line_ids.sale_line_ids]))"/>
|
|
|
|
<tr>
|
|
<td>
|
|
VAT:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.partner_id.vat"/>
|
|
</td>
|
|
|
|
<td>Our Order:</td>
|
|
<td>
|
|
<t t-foreach="sale_orders" t-as="order">
|
|
<t t-if="order.origin">
|
|
<span t-field="order.origin"/>
|
|
/
|
|
</t>
|
|
</t>
|
|
<span t-field="o.invoice_origin"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="16%">EORI-Number:</td>
|
|
<td width="44%">
|
|
<span t-field="o.partner_id.x_studio_eori_nummer"/>
|
|
</td>
|
|
<td>Call-off Order:</td>
|
|
<td>
|
|
<t t-foreach="sale_orders" t-as="order">
|
|
<span t-field="order.comment"/>
|
|
<t t-if="order.x_studio_kommission">
|
|
/ <span t-field="ordere.x_studio_kommission"/>
|
|
</t>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Your Order:</td>
|
|
<td>
|
|
<t t-foreach="sale_orders" t-as="order">
|
|
<span t-field="order.client_order_ref"/>
|
|
</t>
|
|
</td>
|
|
<td>Our Contact:</td>
|
|
<td>
|
|
<span t-field="o.partner_id.user_id"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td/>
|
|
<td/>
|
|
<td>
|
|
VAT-No:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.company_id.vat"/>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</xpath>
|
|
</data> |