Files
Odoo-Build/snippets/purchase.report_purchaseorder_document.replace_informations2.xml
T
2025-03-12 16:55:36 +01:00

89 lines
2.8 KiB
XML

<data inherit_id="purchase.report_purchaseorder_document" priority="50">
<xpath expr="//div[@id='informations']" position="replace">
<style>
table#info {
width: 100%;
margin-bottom: 25px;
border: transparent;
}
table#info td {
color: black;
border: transparent;
}
table#info td:last-child {
background-color: transparent;
}
table#info tr {
text-align: top;
}
</style>
<table id="info" style="width: 700px; margin-bottom: 50px">
<tr>
<t t-if="o.date_approve">
<td width="200px">Date</td>
<td width="500px">
<span id="date_order" t-field="o.date_approve" t-options="{ &quot;widget&quot;: &quot;date&quot; }"/>
</td>
</t>
</tr>
<tr>
<t t-if="o.date_planned">
<td>Delivery Date</td>
<td>
<span t-field="o.date_planned"/>
</td>
</t>
</tr>
<tr>
<t t-if="o.partner_ref">
<td>Your Reference</td>
<td>
<span t-field="o.partner_ref"/>
</td>
</t>
</tr>
<tr>
<t t-if="o.partner_id.parent_id">
<td>Your Contact</td>
<td>
<span t-field="o.partner_id.name"/>
</td>
</t>
</tr>
<tr>
<t t-if="o.incoterm_id">
<td>Incoterm</td>
<td>
<span t-field="o.incoterm_id.name"/>
</td>
</t>
</tr>
<tr>
<t t-if="o.payment_term_id">
<td>Payment terms</td>
<td>
<span t-field="o.payment_term_id"/>
</td>
</t>
</tr>
<tr>
<t t-if="o.user_id">
<td>Our Contact</td>
<td>
<span t-field="o.user_id"/>
<t t-if="o.user_id.email">
, <span t-field="o.user_id.email"/>
</t>
<t t-if="o.user_id.phone">
, <span t-field="o.user_id.phone"/>
</t>
</td>
</t>
</tr>
</table>
</xpath>
</data>