Files
Odoo-Build/snippets/purchase.report_purchaseorder_document.replace_informations.xml
T

111 lines
3.1 KiB
XML

<?xml version="1.0"?>
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
<xpath expr="//div[@id='informations']" position="replace">
<style>
table#info {
width: 100%;
margin-bottom: 25px;
font-size: 9pt;
font-family: arial;
}
table#info tr {
line-height: 1.2;
text-align: left;
}
.note {
font-size: 9pt;
}
</style>
<table id="info">
<tr>
<td width="17%">Oder Date</td>
<td width="40%">
<t t-if="o.date_approve">
<span id="date_approve" t-field="o.date_approve" t-options="{ &quot;widget&quot;: &quot;date&quot; }"/>
</t>
<t t-else="">
<span t-field="o.date_order" t-options="{ &quot;widget&quot;: &quot;date&quot; }"/>
</t>
</td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field="o.user_id"/>
</td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<span t-field="o.partner_id.ref"/>
</td>
<td>Incoterm</td>
<td>
<span t-field="o.incoterm_id"/>
</td>
</tr>
<tr>
<td/>
<td>
<span t-field="o.partner_ref"/>
</td>
<t t-if="o.requisition_id">
<td>Purchase Contract</td>
<td>
<span t-field="o.requisition_id"/>
<t t-if="o.requisition_id.partner_ref"> / <span t-field="o.requisition_id.partner_ref"/>
</t>
</td>
</t>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field="o.comment"/>
</td>
<td/>
<td/>
</tr>
</table>
<t t-if="o.note_header != '&lt;p&gt;&lt;br&gt;&lt;/p&gt;'">
<span class="note" t-field="o.note_header"/>
</t>
</xpath>
<!--
<xpath expr="//div[@id='informations']" position="replace">
<div id="informations">
<table width="100%">
<tr>
<td width="17%">Kunden-Nr.</td>
<td width="41%">
<span t-field="o.partner_id.ref"/>
</td>
<td width="17%">Datum</td>
<td width="25%">
<span t-field="o.date_order" t-options="{ &quot;widget&quot;: &quot;date&quot; }"/>
</td>
</tr>
<tr>
<td>Ihre Referenz</td>
<td>
<span t-field="o.partner_ref"/>
</td>
<td>Kontaktperson</td>
<td>
<span t-field="o.user_id"/>
</td>
</tr>
<tr>
<td/>
<td/>
<td>Mwst-Nr:</td>
<td>
<span t-field="res_company.vat"/> MWST
</td>
</tr>
</table>
</div>
</xpath>
-->
</data>