| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="report_invoice_document" inherit_id="account.report_invoice_document"> |
| 4 |
<!-- add company id to partner details--> |
| 5 |
<xpath expr="//div[@id='partner_vat_address_not_same_as_shipping']" position="before"> |
| 6 |
<div t-if="o.partner_id.company_registry and o.company_id.country_code == 'SK'"> |
| 7 |
ID: <span t-field="o.partner_id.company_registry"/> |
| 8 |
</div> |
| 9 |
</xpath> |
| 10 |
|
| 11 |
<xpath expr="//div[@id='partner_vat_address_same_as_shipping']" position="before"> |
| 12 |
<div t-if="o.partner_id.company_registry and o.company_id.country_code == 'SK'"> |
| 13 |
ID: <span t-field="o.partner_id.company_registry"/> |
| 14 |
</div> |
| 15 |
</xpath> |
| 16 |
|
| 17 |
<xpath expr="//div[@id='partner_vat_no_shipping']" position="before"> |
| 18 |
<div t-if="o.partner_id.company_registry and o.company_id.country_code == 'SK'"> |
| 19 |
ID: <span t-field="o.partner_id.company_registry"/> |
| 20 |
</div> |
| 21 |
</xpath> |
| 22 |
|
| 23 |
<!-- add trade registry--> |
| 24 |
<xpath expr="//div[@name='comment']" position="after"> |
| 25 |
<p t-if="o.company_id.trade_registry and o.company_id.country_code == 'SK'" name="trade_registry"> |
| 26 |
<strong>Trade registry: </strong><t t-out="o.company_id.trade_registry"/> |
| 27 |
</p> |
| 28 |
</xpath> |
| 29 |
</template> |
| 30 |
</odoo> |