101 lines
4.6 KiB
XML
101 lines
4.6 KiB
XML
<?xml version="1.0"?>
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<!-- add default_code -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[1]" position="before">
|
|
<th style="text-align: right; width: 27mm; padding-right: 10px">
|
|
<span>Part No.</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/tbody/t/tr/t[1]/td[1]" position="before">
|
|
<td style="text-align: right; padding-right: 10px">
|
|
<span t-field="line.product_id.default_code"/>
|
|
</td>
|
|
</xpath>
|
|
<!-- Header desriptin -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[2]" position="attributes">
|
|
<attribute name="style">width: 70mm</attribute>
|
|
</xpath>
|
|
<!-- add delivery date -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[3]" position="before">
|
|
<th style="text-align: right; width: 27mm; padding-right: 10px">
|
|
<span/>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/tbody/t/tr/t[1]/td[3]" position="before">
|
|
<td style="text-align: right; padding-right: 10px"/>
|
|
</xpath>
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<td>
|
|
<span style="font-weight: bold" t-field="line.product_id.type_description"/>
|
|
</td>
|
|
</xpath>
|
|
<!-- add second row -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/tbody//tr[1]" position="after">
|
|
<tr>
|
|
<td style="padding-bottom :10px; padding-left:3px; line-height: 1.2"/>
|
|
<td style="padding:0; padding-left:3px; line-height: 1.2"/>
|
|
<td style="padding:0; padding-left:3px; line-height: 1.2" colspan="4">
|
|
<span t-field="line.sale_line_ids.name"/>
|
|
<br/>
|
|
<t t-if="line.product_id.country_of_origin_id.code and line.product_id.hs_code">
|
|
Country of origin:
|
|
<span t-esc="line.product_id.country_of_origin_id.code"/>
|
|
/ HS Code:
|
|
<span t-esc="line.product_id.hs_code"/>
|
|
<br/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code and not line.product_id.country_of_origin_id.code">
|
|
HS Code:
|
|
<span t-esc="line.product_id.hs_code"/>
|
|
</t>
|
|
<t t-if="line.product_id.country_of_origin_id.code and not line.product_id.hs_code">
|
|
Country of origin:
|
|
<span t-esc="line.product_id.country_of_origin_id.code"/>
|
|
</t>
|
|
</td>
|
|
<td/>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid rgb(220,220,220)">
|
|
<td colspan="8"/>
|
|
</tr>
|
|
</xpath>
|
|
<!-- format main_table -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']" position="attributes">
|
|
<attribute name="style">width: 100%; font-size:9pt</attribute>
|
|
<attribute name="class">table table-borderless table-sm</attribute>
|
|
</xpath>
|
|
<!-- header-->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/thead/tr" position="attributes">
|
|
<attribute name="style">border-top:solid 1px; border-bottom: solid 1px; color: black;</attribute>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']" position="after">
|
|
<table class="table table-borderless table-sm" style="margin-top:20px; width:100%; color:black; font-family: arial; font-size:9pt; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black">
|
|
<t t-if="o.note_footer != '<p><br></p>'">
|
|
<span class="note" t-field="o.note_footer"/>
|
|
</t>
|
|
<t t-foreach="o.amount_by_group" t-as="amount_by_group">
|
|
<tr>
|
|
<td style="width:15.5%; text-align:left">
|
|
<Strong>Warenwert</Strong>
|
|
</td>
|
|
<td style="width:23%; text-align:left">
|
|
<span t-field="o.amount_untaxed"/>
|
|
</td>
|
|
<td style="width:12%; text-align:left">
|
|
<span t-esc="amount_by_group[0]"/>
|
|
</td>
|
|
<td style="width:17%; text-align:left">
|
|
<span t-esc="amount_by_group[3]"/>
|
|
</td>
|
|
<td style="width:14%; text-align:right">
|
|
<Strong>Rechnungsbetrag</Strong>
|
|
</td>
|
|
<td style="width:18%; text-align:right">
|
|
<span t-field="o.amount_total"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</table>
|
|
</xpath>
|
|
</data>
|