Files
Odoo-Build/snippets/purchase.report_purchaseorder_document.add_infotable.xml
T
2025-01-03 14:39:51 +01:00

77 lines
2.3 KiB
XML

<?xml version="1.0"?>
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
<xpath expr="//div[@id='informations']" position="before">
<style>
table#info {
width: 100%;
margin-bottom: 25px;
font-size: 9pt;
font-family: arial;
border-color: white;
}
table#info tr {
line-height: 1.2;
text-align: left;
}
table#info span {
line-height: 1.2;
}
.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>
</data>