blob: 89acd21a429af391f7803d0986c866fbf590860e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document">
<xpath expr="//t[@t-if='o.dest_address_id']" position="after">
<t t-else="">
<t t-set="information_block">
<strong>Shipping address:</strong>
<div t-if="o.picking_type_id and o.picking_type_id.warehouse_id">
<span t-field="o.picking_type_id.warehouse_id.name"/>
<div t-field="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
</t>
</t>
</xpath>
<xpath expr="//div[@t-if='o.date_order']" position="after">
<div t-if="o.incoterm_id" class="col-3 bm-2">
<strong>Incoterm:</strong>
<p t-field="o.incoterm_id.code" class="m-0"/>
</div>
</xpath>
</template>
<template id="report_purchasequotation_document" inherit_id="purchase.report_purchasequotation_document">
<xpath expr="//t[@t-if='o.dest_address_id']" position="after">
<t t-else="">
<t t-set="information_block">
<strong>Shipping address:</strong>
<div t-if="o.picking_type_id and o.picking_type_id.warehouse_id">
<span t-field="o.picking_type_id.warehouse_id.name"/>
<div t-field="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/>
</div>
</t>
</t>
</xpath>
<xpath expr="//span[@t-field='o.name']/.." position="after">
<div id="informations" class="row mt16 mb16">
<div t-if="o.incoterm_id" class="col-3 bm-2">
<strong>Incoterm:</strong>
<p t-field="o.incoterm_id.code" class="m-0"/>
</div>
</div>
</xpath>
</template>
</odoo>
|