Files
Odoo-Build/snippets/account.report_invoice_document.replace_address.xml
T
2025-01-03 14:39:51 +01:00

28 lines
1.6 KiB
XML

<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//t[@t-set='information_block']/.." position="replace">
<div class="col-6">
<t t-set="information_block">
<div groups="account.group_delivery_invoice_address" name="shipping_address_block">
<div style="font-weight: bold; font-size: 8pt; padding-bottom: 5px">Shipping Address:</div>
<div t-field="o.partner_shipping_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</div>
</t>
</div>
</xpath>
<xpath expr="//div[@name='address_not_same_as_shipping']" position="replace">
<div class="col-6" name="address_not_same_as_shipping">
<t t-set="address">
<address class="mb-0" t-field="o.partner_invoice_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</t>
</div>
</xpath>
<xpath expr="//div[@name='address_same_as_shipping']" position="replace">
<div class="offset-col-6 col-6" name="address_same_as_shipping">
<t t-set="address">
<address class="mb-0" t-field="o.partner_invoice_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</t>
</div>
</xpath>
</data>