summaryrefslogtreecommitdiff
path: root/addons/sale/report/invoice_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/sale/report/invoice_report_templates.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/sale/report/invoice_report_templates.xml')
-rw-r--r--addons/sale/report/invoice_report_templates.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/addons/sale/report/invoice_report_templates.xml b/addons/sale/report/invoice_report_templates.xml
new file mode 100644
index 00000000..06bcd289
--- /dev/null
+++ b/addons/sale/report/invoice_report_templates.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <template id="report_invoice_document_inherit_sale" inherit_id="account.report_invoice_document">
+ <xpath expr="//address" position="attributes">
+ <attribute name="groups">!sale.group_delivery_invoice_address</attribute>
+ </xpath>
+ <xpath expr="//address" position="before">
+ <t t-if="o.partner_shipping_id and (o.partner_shipping_id != o.partner_id)">
+ <t t-set="information_block">
+ <div groups="sale.group_delivery_invoice_address" name="shipping_address_block">
+ <strong>Shipping Address:</strong>
+ <div t-field="o.partner_shipping_id"
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
+ </div>
+ </t>
+ </t>
+ <div t-field="o.partner_id"
+ t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' groups="sale.group_delivery_invoice_address"/>
+ </xpath>
+ </template>
+</odoo>