mirror of
https://github.com/bringout/oca-ocb-l10n_me-africa.git
synced 2026-04-28 01:22:06 +02:00
19.0 vanilla
This commit is contained in:
parent
c5006a6999
commit
80293571e7
420 changed files with 21812 additions and 44297 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
|
||||
United Arab Emirates POS Localization
|
||||
=======================================================
|
||||
===========================================================
|
||||
|
||||
|
||||
## Installation
|
||||
|
|
@ -13,36 +13,15 @@ pip install odoo-bringout-oca-ocb-l10n_ae_pos
|
|||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- l10n_gcc_pos
|
||||
- l10n_ae
|
||||
- point_of_sale
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: United Arab Emirates - Point of Sale
|
||||
- **Version**: N/A
|
||||
- **Category**: Accounting/Localizations/Point of Sale
|
||||
- **License**: LGPL-3
|
||||
- **Installable**: False
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_ae_pos`.
|
||||
- Repository: https://github.com/OCA/OCB
|
||||
- Branch: 19.0
|
||||
- Path: addons/l10n_ae_pos
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original LGPL-3 license from the upstream Odoo project.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Overview: doc/OVERVIEW.md
|
||||
- Architecture: doc/ARCHITECTURE.md
|
||||
- Models: doc/MODELS.md
|
||||
- Controllers: doc/CONTROLLERS.md
|
||||
- Wizards: doc/WIZARDS.md
|
||||
- Install: doc/INSTALL.md
|
||||
- Usage: doc/USAGE.md
|
||||
- Configuration: doc/CONFIGURATION.md
|
||||
- Dependencies: doc/DEPENDENCIES.md
|
||||
- Troubleshooting: doc/TROUBLESHOOTING.md
|
||||
- FAQ: doc/FAQ.md
|
||||
This package preserves the original LGPL-3 license.
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
{
|
||||
'name': 'United Arab Emirates - Point of Sale',
|
||||
'author': 'Odoo S.A.',
|
||||
'category': 'Accounting/Localizations/Point of Sale',
|
||||
'icon': '/l10n_ae/static/description/icon.png',
|
||||
'description': """
|
||||
United Arab Emirates POS Localization
|
||||
=======================================================
|
||||
===========================================================
|
||||
""",
|
||||
'depends': ['l10n_ae', 'point_of_sale'],
|
||||
'auto_install': True,
|
||||
'author': 'Odoo S.A.',
|
||||
'license': 'LGPL-3',
|
||||
'depends': [
|
||||
'l10n_gcc_pos',
|
||||
'l10n_ae',
|
||||
],
|
||||
'assets': {
|
||||
'point_of_sale.assets': [
|
||||
'l10n_ae_pos/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml',
|
||||
'point_of_sale._assets_pos': [
|
||||
'l10n_ae_pos/static/src/**/*',
|
||||
],
|
||||
},
|
||||
'auto_install': True,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
import { PosOrder } from "@point_of_sale/app/models/pos_order";
|
||||
import { patch } from "@web/core/utils/patch";
|
||||
|
||||
patch(PosOrder.prototype, {
|
||||
isAECompany() {
|
||||
return this.company.country_id?.code === "AE";
|
||||
},
|
||||
});
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-inherit="point_of_sale.ReceiptHeader" t-inherit-mode="extension">
|
||||
<t t-set="show_title" position="after">
|
||||
<t t-set="show_title" t-if="order.isAECompany()" t-value="order.state !== 'draft'"/>
|
||||
</t>
|
||||
<t t-set="show_simplified_title" position="after">
|
||||
<t t-set="show_simplified_title" t-if="order.isAECompany()" t-value="!order.partner_id?.is_company"/>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?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>
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-l10n_ae_pos"
|
||||
version = "16.0.0"
|
||||
description = "United Arab Emirates - Point of Sale - Odoo addon"
|
||||
description = "United Arab Emirates - Point of Sale -
|
||||
Odoo addon
|
||||
"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-ocb-l10n_ae>=16.0.0",
|
||||
"odoo-bringout-oca-ocb-point_of_sale>=16.0.0",
|
||||
"odoo-bringout-oca-ocb-l10n_gcc_pos>=19.0.0",
|
||||
"odoo-bringout-oca-ocb-l10n_ae>=19.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
|
|
@ -17,7 +19,7 @@ classifiers = [
|
|||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue