| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="l10n_in_einvoice_report_invoice_document_inherit" inherit_id="account.report_invoice_document"> |
| 4 |
<xpath expr="//div[@id='informations']" position="inside"> |
| 5 |
<t t-set="l10n_in_einvoice_json" t-value="o._get_l10n_in_edi_response_json()"/> |
| 6 |
<div class="col" t-if="l10n_in_einvoice_json" name="ack_no"> |
| 7 |
<strong>Acknowledgement</strong> |
| 8 |
<div t-out="l10n_in_einvoice_json['AckNo']"/> |
| 9 |
<div t-out="l10n_in_einvoice_json['AckDt']"/> |
| 10 |
</div> |
| 11 |
</xpath> |
| 12 |
<xpath expr="//div[@id='right-elements']" position="after"> |
| 13 |
<t t-set="l10n_in_einvoice_json" t-value="o._get_l10n_in_edi_response_json()"/> |
| 14 |
<div t-attf-class="#{'col-5' if report_type != 'html' else 'ms-auto'} row avoid-page-break-inside" t-if="l10n_in_einvoice_json"> |
| 15 |
<div class="col-7 me-2" t-attf-style="#{'' if report_type != 'html' else 'padding: 0 !important;'}"> |
| 16 |
<strong>IRN:</strong> |
| 17 |
<span t-esc="l10n_in_einvoice_json['Irn']"/> |
| 18 |
</div> |
| 19 |
<div class="col-3 mt-1"> |
| 20 |
<img t-att-src="'/report/barcode/?barcode_type=%s&value=%s&width=%s&height=%s&quiet=%s' %('QR', l10n_in_einvoice_json['SignedQRCode'], 500, 500, 0)" style="max-height: 155px"/> |
| 21 |
</div> |
| 22 |
</div> |
| 23 |
</xpath> |
| 24 |
</template> |
| 25 |
</odoo> |