| 1 |
<?xml version="1.0"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True"> |
| 5 |
<xpath expr="//div[@id='payment_term']" position="after"> |
| 6 |
<t t-set="mydata_values" t-value="o._l10n_gr_edi_get_extra_invoice_report_values()"/> |
| 7 |
<div class="row" t-if="mydata_values"> |
| 8 |
<div class="col-4"> |
| 9 |
<img alt="Greece Barcode" t-att-src="mydata_values['barcode_src']"/> |
| 10 |
</div> |
| 11 |
<div class="col-8"> |
| 12 |
<div style="margin:5px;"> |
| 13 |
<ul style="list-style: none"> |
| 14 |
<li>myDATA Mark <t t-out="mydata_values['mydata_mark']"/></li> |
| 15 |
<li t-if="mydata_values.get('mydata_cls_mark')">myDATA Expense Classification Mark <t t-out="mydata_values['mydata_cls_mark']"/></li> |
| 16 |
</ul> |
| 17 |
</div> |
| 18 |
</div> |
| 19 |
</div> |
| 20 |
</xpath> |
| 21 |
</template> |
| 22 |
|
| 23 |
<!-- Workaround for Studio reports, see odoo/odoo#60660 --> |
| 24 |
<template id="report_invoice" inherit_id="account.report_invoice"> |
| 25 |
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after"> |
| 26 |
<t t-elif="o._get_name_invoice_report() == 'l10n_gr_edi.report_invoice_document'" |
| 27 |
t-call="l10n_gr_edi.report_invoice_document" |
| 28 |
t-lang="lang"/> |
| 29 |
</xpath> |
| 30 |
</template> |
| 31 |
|
| 32 |
</odoo> |