| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="l10n_ae_report_invoice_document" inherit_id="l10n_gcc_invoice.l10n_gcc_report_invoice_document" primary="True"> |
| 4 |
|
| 5 |
<t name="credit_note_title" position="replace"> |
| 6 |
<t name="credit_note_title">Tax Credit Note</t> |
| 7 |
</t> |
| 8 |
<t name="credit_note_title_ar" position="replace"> |
| 9 |
<t name="credit_note_title_ar">إشعار دائن ضريبي</t> |
| 10 |
</t> |
| 11 |
<t name="credit_note_title_en" position="replace"> |
| 12 |
<t name="credit_note_title_en">Tax Credit Note</t> |
| 13 |
</t> |
| 14 |
|
| 15 |
|
| 16 |
<th name="th_taxes" position="after"> |
| 17 |
<t t-if="display_taxes"> |
| 18 |
<th name="th_vat_amount" class="text-end"> |
| 19 |
<span name="th_vat_amount_span_ar" t-if="display_in_ar" t-translation="off">مبلغ الضريبة<br/></span> |
| 20 |
<span name="th_vat_amount_span_en" t-if="display_in_en" t-translation="off">VAT Amount<br/></span> |
| 21 |
<span name="th_vat_amount_span">VAT Amount</span> |
| 22 |
</th> |
| 23 |
</t> |
| 24 |
</th> |
| 25 |
<th name="th_subtotal" position="after"> |
| 26 |
<t t-if="o.currency_id != o.company_currency_id"> |
| 27 |
<th name="th_subtotal_curr" class="text-end"> |
| 28 |
<span name="th_subtotal_curr_span_ar" t-if="display_in_ar" t-translation="off">(<span t-field="o.company_currency_id"/>) المبلغ<br/></span> |
| 29 |
<span name="th_subtotal_curr_span_en" t-if="display_in_en" t-translation="off" dir="ltr">Amount (<span t-field="o.company_currency_id"/>)<br/></span> |
| 30 |
<span name="th_subtotal_curr_span">Amount (<span t-field="o.company_currency_id"/>)</span> |
| 31 |
</th> |
| 32 |
</t> |
| 33 |
</th> |
| 34 |
<td name="td_taxes" position="after"> |
| 35 |
<t t-if="display_taxes"> |
| 36 |
<td name="td_vat_amount" class="text-end"> |
| 37 |
<span t-if="not hide_prices" name="td_vat_amount_span" t-field="line.l10n_gcc_invoice_tax_amount"/> |
| 38 |
</td> |
| 39 |
</t> |
| 40 |
</td> |
| 41 |
<td name="td_subtotal" position="after"> |
| 42 |
<t t-if="o.currency_id != o.company_currency_id"> |
| 43 |
<td name="td_subtotal_curr" class="text-end"> |
| 44 |
<span name="td_subtotal_curr_excl_span" class="text-nowrap" t-if="o.company_price_include == 'tax_excluded' and not hide_prices" |
| 45 |
t-out="line.price_subtotal * 1 / o.invoice_currency_rate" |
| 46 |
t-options="{'widget': 'monetary', 'display_currency': o.company_currency_id}"/> |
| 47 |
<span name="td_subtotal_curr_incl_span" class="text-nowrap" t-if="o.company_price_include == 'tax_included' and not hide_prices" |
| 48 |
t-out="line.price_total * 1 / o.invoice_currency_rate" |
| 49 |
t-options="{'widget': 'monetary', 'display_currency': o.company_currency_id}"/> |
| 50 |
</td> |
| 51 |
</t> |
| 52 |
</td> |
| 53 |
<td name="td_subtotal_grouped" position="before"> |
| 54 |
<td name="td_vat_amount_grouped" t-attf-class="text-end"> |
| 55 |
<span t-if="(grouped_line.get('display_type') in ('line_section', 'line_subsection') or hide_details)" t-out="grouped_line['l10n_gcc_invoice_tax_amount']" t-options='{"widget": "monetary", "display_currency": o.currency_id}' class="text-nowrap">4.05</span> |
| 56 |
</td> |
| 57 |
</td> |
| 58 |
<td name="td_subtotal_grouped" position="after"> |
| 59 |
<td name="th_subtotal_curr_grouped" class="text-end" t-if="o.currency_id != o.company_currency_id"> |
| 60 |
<span t-if="(grouped_line.get('display_type') in ('line_section', 'line_subsection') or hide_details) and o.company_price_include == 'tax_excluded'" class="text-nowrap" t-out="grouped_line['price_subtotal'] * 1 / o.invoice_currency_rate" t-options='{"widget": "monetary", "display_currency": o.company_currency_id}'>27.00</span> |
| 61 |
<span t-if="(grouped_line.get('display_type') in ('line_section', 'line_subsection') or hide_details) and o.company_price_include == 'tax_included'" class="text-nowrap" t-out="grouped_line['price_total'] * 1 / o.invoice_currency_rate" t-options='{"widget": "monetary", "display_currency": o.company_currency_id}'>27.00</span> |
| 62 |
</td> |
| 63 |
</td> |
| 64 |
<xpath expr="//span[@t-out='section_subtotal']/.." position="attributes"> |
| 65 |
<attribute name="colspan">2</attribute> |
| 66 |
</xpath> |
| 67 |
<xpath expr="//t[@t-elif="line.display_type in ('line_section', 'line_subsection')"]//span[@t-out='section_subtotal']/.." position="after"> |
| 68 |
<td colspan="1" class="text-end o_price_total" t-if="o.currency_id != o.company_currency_id"> |
| 69 |
<span class="text-nowrap" |
| 70 |
t-out="section_subtotal * 1 / o.invoice_currency_rate" |
| 71 |
t-options='{"widget": "monetary", "display_currency": o.company_currency_id}'/> |
| 72 |
</td> |
| 73 |
</xpath> |
| 74 |
|
| 75 |
<t t-set="show_exchange_rate" position="attributes"> |
| 76 |
<attribute name="t-value">1</attribute> |
| 77 |
</t> |
| 78 |
</template> |
| 79 |
|
| 80 |
<template id="report_invoice" inherit_id="account.report_invoice"> |
| 81 |
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after"> |
| 82 |
<t t-elif="o._get_name_invoice_report() == 'l10n_ae.l10n_ae_report_invoice_document'" |
| 83 |
t-call="l10n_ae.l10n_ae_report_invoice_document" |
| 84 |
t-lang="lang"/> |
| 85 |
</xpath> |
| 86 |
</template> |
| 87 |
</odoo> |