42 lines
1.4 KiB
XML
42 lines
1.4 KiB
XML
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']//address" position="replace">
|
|
<address>
|
|
<t t-if="o.partner_id.invoice_name">
|
|
<div>
|
|
<span t-esc="o.partner_id.invoice_name"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.address_addition">
|
|
<div>
|
|
<span t-esc="o.partner_id.address_addition"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.street">
|
|
<div>
|
|
<span t-esc="o.partner_id.street"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.street2">
|
|
<div>
|
|
<span t-esc="o.partner_id.street2"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.city and o.partner_id.city">
|
|
<div>
|
|
<span t-esc="o.partner_id.zip"/>
|
|
<span t-esc="o.partner_id.city"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.country_id">
|
|
<div>
|
|
<span t-esc="o.partner_id.country_id.name"/>
|
|
</div>
|
|
</t>
|
|
</address>
|
|
</xpath>
|
|
|
|
<!-- Odoo 17+: Odoo does not replace all matches,
|
|
so you have to specify certain match or
|
|
find loop solution. -->
|
|
</data>
|