diff options
Diffstat (limited to 'addons/purchase_stock/report/purchase_report_templates.xml')
| -rw-r--r-- | addons/purchase_stock/report/purchase_report_templates.xml | 46 |
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> |
