| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document"> |
| 5 |
<xpath expr="//t[@t-if='o.dest_address_id']" position="after"> |
| 6 |
<t t-else=""> |
| 7 |
<t t-set="information_block"> |
| 8 |
<strong class="d-block mt-3">Shipping address</strong> |
| 9 |
<div t-if="o.picking_type_id and o.picking_type_id.warehouse_id"> |
| 10 |
<span t-field="o.picking_type_id.warehouse_id.name"/> |
| 11 |
<div t-field="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/> |
| 12 |
</div> |
| 13 |
</t> |
| 14 |
</t> |
| 15 |
</xpath> |
| 16 |
<xpath expr="//div[@t-if='o.date_planned']" position="after"> |
| 17 |
<div t-if="o.incoterm_id" class="col-2 bm-2"> |
| 18 |
<strong>Incoterm:</strong> |
| 19 |
<p t-if="o.incoterm_location"> |
| 20 |
<span t-field="o.incoterm_id.code"/> <br/> |
| 21 |
<span t-field="o.incoterm_location"/> |
| 22 |
</p> |
| 23 |
<p t-else="" t-field="o.incoterm_id.code" class="m-0"/> |
| 24 |
</div> |
| 25 |
</xpath> |
| 26 |
</template> |
| 27 |
|
| 28 |
<template id="report_purchasequotation_document" inherit_id="purchase.report_purchasequotation_document"> |
| 29 |
<xpath expr="//t[@t-if='o.dest_address_id']" position="after"> |
| 30 |
<t t-else=""> |
| 31 |
<t t-set="information_block"> |
| 32 |
<strong class="d-block mt-3">Shipping address</strong> |
| 33 |
<div t-if="o.picking_type_id and o.picking_type_id.warehouse_id"> |
| 34 |
<span t-field="o.picking_type_id.warehouse_id.name"/> |
| 35 |
<div t-field="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/> |
| 36 |
</div> |
| 37 |
<div> |
| 38 |
<strong>Requested Ship Date:</strong> |
| 39 |
<span t-field="o.date_planned" t-options="{'date_only': 'true'}"/> |
| 40 |
</div> |
| 41 |
</t> |
| 42 |
</t> |
| 43 |
</xpath> |
| 44 |
<xpath expr="//t[@t-set='layout_document_title']" position="after"> |
| 45 |
<div id="informations" class="row mt16 mb16"> |
| 46 |
<div t-if="o.incoterm_id" class="col-3 bm-2"> |
| 47 |
<strong>Incoterm:</strong> |
| 48 |
<p t-if="o.incoterm_location"> |
| 49 |
<span t-field="o.incoterm_id.code"/> <br/> |
| 50 |
<span t-field="o.incoterm_location"/> |
| 51 |
</p> |
| 52 |
<p t-else="" t-field="o.incoterm_id.code" class="m-0"/> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
</xpath> |
| 56 |
</template> |
| 57 |
|
| 58 |
</odoo> |