119 lines
6.2 KiB
XML
119 lines
6.2 KiB
XML
<?xml version="1.0"?>
|
|
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
|
<!-- add default_code -->
|
|
<xpath expr="//table/thead/tr/th[1]" position="after">
|
|
<th>
|
|
<span>Artikel Nr.</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table/tbody/t/tr/t[1]/td[1]" position="after">
|
|
<td>
|
|
<span t-field="line.product_id.default_code"/>
|
|
</td>
|
|
</xpath>
|
|
<!-- replace product description -->
|
|
<xpath expr="//table/tbody/t[2]/tr/t[1]/td[3]/span" position="replace">
|
|
<t>
|
|
<span style="font-weight:bold;" t-field="line.product_id.type_description"/>
|
|
</t>
|
|
</xpath>
|
|
<!-- add second row -->
|
|
<xpath expr="//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.name"/>
|
|
<br/>
|
|
<t t-if="line.product_id.country_of_origin_id.code">Ursprungsland: <span t-field="line.product_id.country_of_origin_id.code"/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code"> / Zollposition: <span t-field="line.product_id.hs_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>
|
|
<!-- header: position -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/thead/tr/th[1]" position="attributes"><attribute name="style">width: 5mm</attribute>/>
|
|
</xpath>
|
|
<!-- header: default code -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/thead/tr/th[2]" position="attributes"><attribute name="style">width: 27mm; text-align: right; padding-right: 10px</attribute>"/>
|
|
</xpath>
|
|
<!-- header: description -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/thead/tr/th[3]" position="attributes"><attribute name="style">width: 70mm</attribute>/>
|
|
</xpath>
|
|
<!-- header: qty -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/thead/tr/th[5]" position="attributes"><attribute name="style">text-align: right; padding-right: 5px</attribute>"/>
|
|
<attribute name="style">width: 30mm</attribute>/>
|
|
</xpath>
|
|
<!-- position -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/tbody/t[2]/tr/t[1]/td[1]" position="attributes"><attribute name="style">text-align: right</attribute>/>
|
|
</xpath>
|
|
<!-- default code -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/tbody/t[2]/tr/t[1]/td[2]" position="attributes"><attribute name="style">text-align: right; padding-right: 10px</attribute>/>
|
|
</xpath>
|
|
<!-- commitment date -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/tbody/t[2]/tr/t[1]/td[4]" position="attributes"><attribute name="style">text-align: left;</attribute>/>
|
|
</xpath>
|
|
<!-- qty -->
|
|
<xpath expr="/t/t/div/table[2]/tbody/t[2]/tr[1]/t[1]/td[5]/span[1]" position="attributes">
|
|
<attribute name="class" separator=" " add="o_bold"/>
|
|
<attribute name="t-options-widget">"integer"</attribute>
|
|
</xpath>
|
|
<!-- price -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/tbody/t[2]/tr/t[1]/td[7]/span" position="replace">
|
|
<span t-esc="'%g' % line.price_unit if str(line.price_unit)[::-1].find('.') >= 3 else '%.2f' % line.price_unit"/>
|
|
</xpath>
|
|
<!-- remove taxes -->
|
|
<xpath expr="//thead/tr[1]/th[9]" position="replace"/>
|
|
<xpath expr="//tbody/t[2]/tr[1]/t[1]/td[9]" position="replace"/>
|
|
<!-- margin -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/tbody/t[2]/tr/t[1]/td[8]/span" position="replace"><span t-field="line.discount"/>%
|
|
</xpath>
|
|
<!-- total price -->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/tbody[1]/t[2]/tr[1]/t[1]/td[9]/span" position="replace">
|
|
<span t-esc="'{0:,.2f}'.format(int(line.price_subtotal)).replace(',','\'')"/>
|
|
</xpath>
|
|
<xpath expr="//table[@class='table table-borderless table-sm']" position="after">
|
|
<t t-if="doc.note_footer != '<p><br></p>'">
|
|
<span class="note" t-field="doc.note_footer"/>
|
|
</t>
|
|
<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-foreach="doc.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="doc.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[1]" t-options="{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}"/>
|
|
</td>
|
|
<td style="width:14%; text-align:right">
|
|
<Strong>Rechnungsbetrag</Strong>
|
|
</td>
|
|
<td style="width:18%; text-align:right">
|
|
<span t-field="doc.amount_total"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</table>
|
|
</xpath>
|
|
</data>
|