[ADD] l10n_ae_pos

closes odoo/odoo#75425

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
sal-odoo
2021-08-23 08:56:13 +00:00
parent 696dff64d6
commit f2be38bbd3
3 changed files with 27 additions and 0 deletions
View File
+15
View File
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'U.A.E. - Point of Sale',
'author': 'Odoo PS',
'category': 'Accounting/Localizations/Point of Sale',
'description': """
United Arab Emirates POS Localization
=======================================================
""",
'depends': ['l10n_ae', 'point_of_sale'],
'qweb': ['static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml'],
'auto_install': True,
'license': 'LGPL-3',
}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="OrderReceiptVAT" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
<xpath expr="//div[contains(text(), 'Total Taxes')]" position="replace">
<div>
<t t-if="env.pos.company.country.code == 'AE'">VAT</t>
<t t-else="">Total Taxes</t>
<span t-esc="env.pos.format_currency(receipt.total_tax)" class="pos-receipt-right-align"/>
</div>
</xpath>
</t>
</templates>