summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <yenthevg@gmail.com>2021-01-19 07:07:03 +0000
committerroot <yenthevg@gmail.com>2021-01-19 07:07:03 +0000
commitd418e4e16a46a0d499e606598b3524eabd19e5fd (patch)
treed147886650095bcd7e36a19034be36c3b8fc2903
parent92ceb86d58f4d78c8a4256f29d101d3730517b93 (diff)
[IMP] sale: set id on invoice block for easier xpath
Before this commit it was rather painful/cluncky to find a way to remove this block. By setting a name on the block we can easily xpath it to replace it or add extra content within. This makes it easier for external devs to influence this view. closes odoo/odoo#64729 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
-rw-r--r--addons/sale/report/invoice_report_templates.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/report/invoice_report_templates.xml b/addons/sale/report/invoice_report_templates.xml
index fbc1d1a9f2d..06bcd289cff 100644
--- a/addons/sale/report/invoice_report_templates.xml
+++ b/addons/sale/report/invoice_report_templates.xml
@@ -7,7 +7,7 @@
<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">
+ <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}'/>