summaryrefslogtreecommitdiff
path: root/addons/purchase_stock/report/purchase_report_templates.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/purchase_stock/report/purchase_report_templates.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/purchase_stock/report/purchase_report_templates.xml')
-rw-r--r--addons/purchase_stock/report/purchase_report_templates.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/addons/purchase_stock/report/purchase_report_templates.xml b/addons/purchase_stock/report/purchase_report_templates.xml
new file mode 100644
index 00000000..89acd21a
--- /dev/null
+++ b/addons/purchase_stock/report/purchase_report_templates.xml
@@ -0,0 +1,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>