@ -0,0 +1,41 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
POS Multi Currency Payment |
||||
|
========================== |
||||
|
This module allows to use multiple currency in Point of Sale module. |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
Affero General Public License v3.0 (AGPL v3) |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V17) Shikhil Raj , Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from . import models |
@ -0,0 +1,56 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
{ |
||||
|
'name': "POS Multi Currency Payment", |
||||
|
'version': '17.0.1.0.0', |
||||
|
'category': 'Point of Sale', |
||||
|
'summary': "This module allows us to make payment in multiple " |
||||
|
"currencies in Odoo 17 POS module.", |
||||
|
'description': "This module in Odoo 17 offers the " |
||||
|
"option to expand its capabilities, enabling companies " |
||||
|
"to take payments in different currencies. A variety of " |
||||
|
"adjustments and setups are required for the POS module " |
||||
|
"to be extended to support several currencies, enabling " |
||||
|
"businesses to perform transactions in various monetary " |
||||
|
"units without any issues.", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['point_of_sale', 'account'], |
||||
|
'data': [ |
||||
|
'views/res_config_settings_views.xml' |
||||
|
], |
||||
|
'assets': { |
||||
|
'point_of_sale._assets_pos': [ |
||||
|
'multi_currency_payment_in_pos/static/src/xml/multicurrency_templates.xml', |
||||
|
'multi_currency_payment_in_pos/static/src/js/pos_models.js', |
||||
|
'multi_currency_payment_in_pos/static/src/js/backend_order.js', |
||||
|
'multi_currency_payment_in_pos/static/src/js/paymentscreen.js', |
||||
|
], |
||||
|
}, |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
## Module <multi_currency_payment_in_pos> |
||||
|
|
||||
|
#### 14.08.2025 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
#### ADD |
||||
|
|
||||
|
- Initial commit for POS Multi Currency Payment |
@ -0,0 +1,26 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from . import pos_config |
||||
|
from . import pos_order |
||||
|
from . import pos_payment |
||||
|
from . import pos_session |
||||
|
from . import res_config_settings |
@ -0,0 +1,60 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class PosConfig(models.Model): |
||||
|
"""Adding boolean field and many2many currency field.""" |
||||
|
_inherit = 'pos.config' |
||||
|
|
||||
|
currency_ids = fields.Many2many('res.currency', |
||||
|
string='Currency', help='Currency') |
||||
|
enable_multicurrency = fields.Boolean(string='Enable multi currency', |
||||
|
help='Enable the multi currency') |
||||
|
|
||||
|
@api.model |
||||
|
def get_config_settings(self, config_id): |
||||
|
"""Updating all the currencies with id, name, symbol, rate""" |
||||
|
config = self.env['pos.config'].browse(int(config_id)) |
||||
|
result = [] |
||||
|
for currency in config.currency_ids: |
||||
|
result.append({ |
||||
|
'id': currency.id, |
||||
|
'name': currency.name, |
||||
|
'symbol': currency.symbol, |
||||
|
'rate': currency.rate, |
||||
|
}) |
||||
|
|
||||
|
return result |
||||
|
|
||||
|
@api.model |
||||
|
def get_selected_currency(self, selected_id): |
||||
|
"""Return the """ |
||||
|
currency = self.env['res.currency'].browse(int(selected_id)) |
||||
|
usd_val = round(1 / currency.rate, 2) |
||||
|
return [{ |
||||
|
'id': currency.id, |
||||
|
'name': currency.name, |
||||
|
'symbol': currency.symbol, |
||||
|
'rate': currency.rate, |
||||
|
'usd_val': usd_val |
||||
|
}] |
@ -0,0 +1,49 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from odoo import api, models |
||||
|
|
||||
|
|
||||
|
class PosOrder(models.Model): |
||||
|
"""This class extends the 'pos.order' model and adds custom functionality |
||||
|
related to payment processing.""" |
||||
|
_inherit = 'pos.order' |
||||
|
|
||||
|
@api.model |
||||
|
def _payment_fields(self, order, ui_paymentline): |
||||
|
"""Prepare and return a dictionary containing payment fields from the |
||||
|
user interface payment line. |
||||
|
params: |
||||
|
order (pos.order): The POS order to which the payment belongs. |
||||
|
ui_paymentline (dict): Payment information from the user interface.""" |
||||
|
return { |
||||
|
'amount': ui_paymentline['amount'] or 0.0, |
||||
|
'payment_date': ui_paymentline['name'], |
||||
|
'payment_method_id': ui_paymentline['payment_method_id'], |
||||
|
'card_type': ui_paymentline.get('card_type'), |
||||
|
'cardholder_name': ui_paymentline.get('cardholder_name'), |
||||
|
'transaction_id': ui_paymentline.get('transaction_id'), |
||||
|
'payment_status': ui_paymentline.get('payment_status'), |
||||
|
'ticket': ui_paymentline.get('ticket'), |
||||
|
'pos_order_id': order.id, |
||||
|
'payment_currency': ui_paymentline.get('payment_currency'), |
||||
|
'currency_amount': ui_paymentline.get('currency_amount') |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class PosPayment(models.Model): |
||||
|
"""Adding currency symbol and amount.""" |
||||
|
_inherit = 'pos.payment' |
||||
|
|
||||
|
payment_currency = fields.Char(string='Payment Currency', |
||||
|
help='Currency in POS settings.') |
||||
|
currency_amount = fields.Float(string='Currency Amount', |
||||
|
help='Currency amount settings.') |
@ -0,0 +1,49 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from odoo import models |
||||
|
|
||||
|
|
||||
|
class PosSession(models.Model): |
||||
|
"""Inherited this model and added customize loader parameters for |
||||
|
retrieving currency-related data,Retrieve currency information for |
||||
|
the POS session's user interface.""" |
||||
|
_inherit = 'pos.session' |
||||
|
|
||||
|
def _loader_params_res_currency(self): |
||||
|
"""Customize loader parameters for retrieving currency-related data.""" |
||||
|
result = super()._loader_params_res_currency() |
||||
|
result['params'] = { |
||||
|
'search_params': { |
||||
|
'domain': [], |
||||
|
'fields': [], |
||||
|
}, |
||||
|
} |
||||
|
return result |
||||
|
|
||||
|
def _get_pos_ui_res_currency(self, params): |
||||
|
"""Retrieve currency information for the POS session's user interface. |
||||
|
""" |
||||
|
result = super()._get_pos_ui_res_currency(params) |
||||
|
currencies = self.config_id.currency_ids |
||||
|
currency_params = self.env['res.currency'].search_read([('id', 'in', currencies.ids)]) |
||||
|
result['currency_params'] = currency_params |
||||
|
return result |
@ -0,0 +1,48 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
"""Added boolean field and currency.""" |
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
currency_ids = fields.Many2many('res.currency', |
||||
|
string="Currencies", |
||||
|
related="pos_config_id.currency_ids", |
||||
|
readonly=False, |
||||
|
help="The list of currencies supported by " |
||||
|
"this Point of Sale configuration.") |
||||
|
|
||||
|
enable_currency = fields.Boolean(string="Enable Currency", |
||||
|
config_parameter="multi_currency_payment_in_pos.enable_currency", |
||||
|
help="Enable or disable currency for " |
||||
|
"this POS configuration.") |
||||
|
|
||||
|
@api.onchange('enable_currency') |
||||
|
def _onchange_value(self): |
||||
|
"""When enable the boolean field many2many currency field will |
||||
|
display.""" |
||||
|
for rec in self: |
||||
|
rec.pos_config_id.enable_multicurrency = rec.enable_currency |
||||
|
print("onchange : ", rec.pos_config_id.enable_multicurrency) |
||||
|
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 105 KiB |
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 125 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 196 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 26 KiB |
@ -0,0 +1,659 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
|
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>POS Multi Currency Payment</title> |
||||
|
<!-- Bootstrap CSS --> |
||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
||||
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<section> |
||||
|
<div class="container" style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
||||
|
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
||||
|
<div class="my-3"> |
||||
|
<img src="assets/misc/Cybrosys R.png" style="width:auto !important; height:40px !important"> |
||||
|
</div> |
||||
|
<div class="my-3 d-flex align-items-center"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
||||
|
style="margin: 80px 0px !important;"> |
||||
|
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
||||
|
#1A202C;"> |
||||
|
POS Multi Currency Payment |
||||
|
</h1> |
||||
|
<p class="my-3 mb-4" |
||||
|
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
||||
|
This Module Allows To Use Multiple Currency In Point of Sale Module. |
||||
|
</p> |
||||
|
<div style="width: 80%; margin-top: 3rem;"> |
||||
|
<img src="assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5 mb-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#714b67 !important">Key Highlights |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="row py-4"> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p class="m-0" style="color:#718096">Community & Enterprise Support . |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p class="m-0" style="color:#718096">User can enable multiple currency payment feature in the settings and choose multiple currencies. |
||||
|
. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p class="m-0" style="color:#718096">Convert the remaining payment currency amount based on |
||||
|
the selected currency from POS payment screen. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p class="m-0" style="color:#718096"> |
||||
|
Shows the amount of payment it's currency on the payment lines and inside the reciept. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p class="m-0" style="color:#718096"> |
||||
|
Showcases the payment currency and converted currency |
||||
|
amount in the backend POS order. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container rounded" > |
||||
|
<ul class="nav nav-tabs d-flex" style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
||||
|
class="active show" data-toggle="tab" href="#tab1" |
||||
|
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
||||
|
<i class="fa-regular fa-image pr-2" style="color: #fff;"></i> |
||||
|
Screenshots</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
||||
|
data-toggle="tab" href="#tab2" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
||||
|
class="fa-solid fa-star pr-2" style="color: #fff;"></i>Features</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
||||
|
data-toggle="tab" href="#tab3" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
||||
|
class="fa-solid fa-book-open pr-2" style="color: #fff;"></i>Released Notes</a></li> |
||||
|
</ul> |
||||
|
<div class="tab-content" style="background-color: rgba(121, 113, 119, 0.04);"> |
||||
|
<div id="tab1" class="tab-pane fade in active show"> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/1.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Enable option of Multi Currency per Session from POS settings and choose the currencies. |
||||
|
|
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/2.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Toggle Multicurrency in payment screen to choose the enabled currencies. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/3.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Enter the Payment Amount and click the button to Add Cash Payment. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/4.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Payment lines added via multi currency option shows corresponding currency and it's amount. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/5.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/6.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Payment Currency Symbol and amount is added to the receipt. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/7.png" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Payment Currency symbol and amount is also added to the corresponding POS order created in the backend. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab2" class="tab-pane fade"> |
||||
|
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
||||
|
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span> |
||||
|
User can enable multiple currency payment feature in the settings and choose multiple currencies. |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span> |
||||
|
Shows the amount of payment it's currency on the payment lines and inside the reciept. |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span> |
||||
|
Convert the remaining payment currency amount based on the selected currency from POS payment screen. |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab3" class="tab-pane fade"> |
||||
|
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
||||
|
<div class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="d-flex mb-3" style="font-size: 0.8rem; font-weight: 500;"><span>Version |
||||
|
17.0.1.0.0</span><span class="px-2">|</span><span |
||||
|
style="color: #714B67;font-weight: 600;">Released on:08 August 2025</span> |
||||
|
</div> |
||||
|
<p class="m-0" |
||||
|
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
||||
|
Initial Commit for Profit And Loss PDF Report</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Related Products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/account_payment_approval" style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/1.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Payment Approvals</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/invoice_multi_approval/" style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/2.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Invoice Multi Level Approval</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/dynamic_accounts_report/" style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/3.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Odoo17 Dynamic Accounting Reports</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/automatic_invoice_and_post/" style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/4.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Automatic Invoice And Post</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/advance_cash_flow_statements/" style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/5.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Advanced Cash Flow Statements</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/cw_mrp/" style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/6.png" alt="" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> Catch Weight Management: Manufacturing</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<a class="carousel-control-prev" href="#myCarousel" data-slide="prev" style="width: 35px; color: #000;"> |
||||
|
<span class="carousel-control-prev-icon"> |
||||
|
<i class="fa fa-chevron-left" style="font-size: 24px;"></i> |
||||
|
</span> |
||||
|
</a> |
||||
|
<a class="carousel-control-next" href="#myCarousel" data-slide="next" style="width: 35px; color: #000;"> |
||||
|
<span class="carousel-control-next-icon"> |
||||
|
<i class="fa fa-chevron-right" style="font-size: 24px;"></i> |
||||
|
</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Services</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row py-3"> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/cogs.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Customization</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/wrench.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/lifebuoy.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/user.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Hire Odoo Developer</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
|
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/puzzle.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Integration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/update.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Migration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/consultation.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/training.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/license.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Licensing Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Industries</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container"> |
||||
|
<div class="row my-5 py-4"> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100 " |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/trading-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
||||
|
<p>Easily procure and sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/pos-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
||||
|
<p>Easy configuration and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
||||
|
<img src="assets/icons/education-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Education</p> |
||||
|
<p>A platform for educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/manufacturing-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Manufacturing</p> |
||||
|
<p>Plan, track and schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/ecom-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & Website</p> |
||||
|
<p>Mobile friendly, awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/service-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Service Management</p> |
||||
|
<p>Keep track of services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/restaurant-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Restaurant</p> |
||||
|
<p>Run your bar or restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/hotel-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Hotel Management</p> |
||||
|
<p>An all-inclusive hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row" style="background-color: #FFFAFE;"> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
||||
|
style="border-right: 1px solid #D9D9D9;"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/support (1) 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
||||
|
<div style="padding: 0px 8px;"> |
||||
|
<span |
||||
|
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
||||
|
Help?</span> |
||||
|
<p class="m-0" style="color:#718096;">Got questions or need help? Get in touch.</p> |
||||
|
<div style="font-weight: 400;"><span><img src="assets/misc/support-email.svg" alt="" |
||||
|
width="18px" |
||||
|
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/whatsapp 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
||||
|
<p class="m-0" style="color:#718096;">Say hi to us on WhatsApp!</p> |
||||
|
<div style="font-weight: 400; font-size: 16px;"><span><img src="assets/misc/phone.svg" |
||||
|
alt="" width="14px" |
||||
|
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
||||
|
99456767686</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- Optional JavaScript --> |
||||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,112 @@ |
|||||
|
///** @odoo-module **/
|
||||
|
///**This module extends the functionality of Odoo's backend order handling in the context
|
||||
|
// * of multi-currency transactions. It overrides the standard `_save_to_server` method
|
||||
|
// * to accommodate multi-currency data and ensure that the converted currency values are
|
||||
|
// * correctly saved to the server. */
|
||||
|
import { patch } from "@web/core/utils/patch"; |
||||
|
import { PosStore } from "@point_of_sale/app/store/pos_store"; |
||||
|
import { Payment } from "@point_of_sale/app/store/models"; |
||||
|
patch(PosStore.prototype, { |
||||
|
async _save_to_server(orders, options) { |
||||
|
if(orders.length > 0){ |
||||
|
for (let i = 0, len = orders[0].data.statement_ids.length; i < len; i++){ |
||||
|
if (this.orders[0].paymentlines[i]){ |
||||
|
if(this.orders[0].paymentlines[i].converted_currency){ |
||||
|
orders[0].data.statement_ids[i][2].currency_amount = this.orders[0].paymentlines[i].converted_currency.amount |
||||
|
orders[0].data.statement_ids[i][2].payment_currency = this.orders[0].paymentlines[i].converted_currency.name |
||||
|
}else{ |
||||
|
orders[0].data.statement_ids[i][2].currency_amount = "" |
||||
|
orders[0].data.statement_ids[i][2].payment_currency = "" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
if (!orders || !orders.length) { |
||||
|
return Promise.resolve([]); |
||||
|
} |
||||
|
|
||||
|
// Filter out orders that are already being synced
|
||||
|
const ordersToSync = orders.filter(order => !this.syncingOrders.has(order.id)); |
||||
|
|
||||
|
if (!ordersToSync.length) { |
||||
|
return Promise.resolve([]); |
||||
|
} |
||||
|
|
||||
|
// Add these order IDs to the syncing set
|
||||
|
ordersToSync.forEach(order => this.syncingOrders.add(order.id)); |
||||
|
|
||||
|
this.set_synch("connecting", ordersToSync.length); |
||||
|
options = options || {}; |
||||
|
|
||||
|
// Keep the order ids that are about to be sent to the
|
||||
|
// backend. In between create_from_ui and the success callback
|
||||
|
// new orders may have been added to it.
|
||||
|
const order_ids_to_sync = ordersToSync.map((o) => o.id); |
||||
|
|
||||
|
for (const order of ordersToSync) { |
||||
|
order.to_invoice = options.to_invoice || false; |
||||
|
} |
||||
|
// we try to send the order. silent prevents a spinner if it takes too long. (unless we are sending an invoice,
|
||||
|
// then we want to notify the user that we are waiting on something )
|
||||
|
const orm = options.to_invoice ? this.orm : this.orm.silent; |
||||
|
|
||||
|
try { |
||||
|
// FIXME POSREF timeout
|
||||
|
// const timeout = typeof options.timeout === "number" ? options.timeout : 30000 * orders.length;
|
||||
|
const serverIds = await orm.call( |
||||
|
"pos.order", |
||||
|
"create_from_ui", |
||||
|
[ordersToSync, options.draft || false], |
||||
|
{ |
||||
|
context: this._getCreateOrderContext(ordersToSync, options), |
||||
|
} |
||||
|
); |
||||
|
|
||||
|
for (const serverId of serverIds) { |
||||
|
const order = this.env.services.pos.orders.find( |
||||
|
(order) => order.name === serverId.pos_reference |
||||
|
); |
||||
|
|
||||
|
if (order) { |
||||
|
order.server_id = serverId.id; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
for (const order_id of order_ids_to_sync) { |
||||
|
this.db.remove_order(order_id); |
||||
|
} |
||||
|
|
||||
|
this.failed = false; |
||||
|
this.set_synch("connected"); |
||||
|
return serverIds; |
||||
|
} catch (error) { |
||||
|
console.warn("Failed to send orders:", ordersToSync); |
||||
|
if (error.code === 200) { |
||||
|
// Business Logic Error, not a connection problem
|
||||
|
// Hide error if already shown before ...
|
||||
|
if ((!this.failed || options.show_error) && !options.to_invoice) { |
||||
|
this.failed = error; |
||||
|
this.set_synch("error"); |
||||
|
throw error; |
||||
|
} |
||||
|
} |
||||
|
this.set_synch("disconnected"); |
||||
|
throw error; |
||||
|
} finally { |
||||
|
order_ids_to_sync.forEach(order_id => this.syncingOrders.delete(order_id)); |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
patch(Payment.prototype, { |
||||
|
export_for_printing() { |
||||
|
const result = super.export_for_printing(...arguments); |
||||
|
if(this.converted_currency){ |
||||
|
result.converted_currency_amount = this.converted_currency.amount |
||||
|
result.converted_currency_name = this.converted_currency.name |
||||
|
result.converted_currency_symbol = this.converted_currency.symbol |
||||
|
this.currency_amount = this.converted_currency.amount |
||||
|
} |
||||
|
return result; |
||||
|
}, |
||||
|
|
||||
|
}); |
@ -0,0 +1,163 @@ |
|||||
|
/** @odoo-module **/ |
||||
|
import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen"; |
||||
|
import { registry } from "@web/core/registry"; |
||||
|
import { onMounted, useState, mount } from "@odoo/owl"; |
||||
|
import { patch } from "@web/core/utils/patch"; |
||||
|
import { useService } from "@web/core/utils/hooks"; |
||||
|
import { usePos } from "@point_of_sale/app/store/pos_hook"; |
||||
|
var current_currency,currency_id |
||||
|
patch(PaymentScreen.prototype, { |
||||
|
setup(){ |
||||
|
super.setup(); |
||||
|
this.current_currency = useState({ |
||||
|
rate: 1, |
||||
|
display_name: '', |
||||
|
symbol: '', |
||||
|
}); |
||||
|
this.multi_currency = useState({ |
||||
|
currencies: [], |
||||
|
usd_val: '', |
||||
|
name: '', |
||||
|
total: '', |
||||
|
symbol: '', |
||||
|
rate: '' |
||||
|
}); |
||||
|
|
||||
|
// useListener('multi-payment-line', this.multi_currency_payment_line);
|
||||
|
this.env.bus.addEventListener('multi-payment-line', this.multi_currency_payment_line.bind(this)); |
||||
|
var currency=[] |
||||
|
onMounted(() => { |
||||
|
this.multi_currency.currencies = currency; |
||||
|
this.enable_multi_currency(); |
||||
|
}); |
||||
|
currency.push(this.pos.currency.currency_params) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
enable_multi_currency(){ |
||||
|
if(this.pos.config.enable_multicurrency == false){ |
||||
|
$('.pos_multicurrency').css('display','none') |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
show_options(){ |
||||
|
if($('.multicurrency_container')[0].style.display == 'none'){ |
||||
|
$('.multicurrency_container').css({'display':'flex','flex-direction':'column','align-items': 'center'}) |
||||
|
for (let i = 0, len = this.multi_currency.currencies[0].length; i < len; i++){ |
||||
|
$('.currecy_list').append("<option id="+this.multi_currency.currencies[0][i].id+">"+this.multi_currency.currencies[0][i].display_name+"</option") |
||||
|
} |
||||
|
}else{ |
||||
|
$('.currecy_list').empty() |
||||
|
$('.multicurrency_container').css('display','none') |
||||
|
} |
||||
|
}, |
||||
|
compute_currency(ev){ |
||||
|
currency_id = $('.currecy_list').find('option:selected')[0].id |
||||
|
if(currency_id){ |
||||
|
$('.conversion_container').css({'display':'block','text-align': 'center'}) |
||||
|
$('.multicurrency_input').css({'border':'1px solid black'}) |
||||
|
current_currency = this.multi_currency.currencies[0].find(item => item.id === parseInt(currency_id)); |
||||
|
var initial_total |
||||
|
if ($('.total').length > 0 ){ |
||||
|
initial_total = $('.total')[0].innerText |
||||
|
|
||||
|
}else{ |
||||
|
initial_total = $('.payment-status-remaining')[0].children[1].innerText |
||||
|
} |
||||
|
var total_array = initial_total.split(/\s| /); |
||||
|
var total_value = parseFloat(total_array[1]) |
||||
|
$('.rate_string')[0].innerText = current_currency.rate_string |
||||
|
//Total in converted curency
|
||||
|
var display_total = current_currency.rate * total_value |
||||
|
if(display_total == 0){ |
||||
|
$('.conversion_container').css({'display':'none'}) |
||||
|
}else{ |
||||
|
$('.total_amount')[0].innerText = display_total |
||||
|
} |
||||
|
}else{ |
||||
|
$('.conversion_container').css({'display':'none'}) |
||||
|
} |
||||
|
}, |
||||
|
//Adding entered currency amount in payment line.
|
||||
|
async multi_currency_payment_line(ev){ |
||||
|
if(this.pos.config.enable_multicurrency == true){ |
||||
|
var amount_val = parseFloat($('.multicurrency_input').val()) |
||||
|
let total_val; |
||||
|
let remaining_val; |
||||
|
let total = document.getElementsByClassName("total"); |
||||
|
if($('.total').length){ |
||||
|
total_val = total[0].innerText |
||||
|
total_val = parseFloat(total_val.replace(/[^\d.]/g, '')); |
||||
|
} |
||||
|
|
||||
|
if($('.payment-status-remaining').length){ |
||||
|
remaining_val = $('.payment-status-remaining')[0].children[1].innerText |
||||
|
remaining_val = remaining_val.split(" ") |
||||
|
remaining_val = parseFloat(remaining_val[1]) |
||||
|
} |
||||
|
if( total_val > 0 || remaining_val > 0){ |
||||
|
if(amount_val){ |
||||
|
this.addNewPaymentLine(ev) |
||||
|
var update_amount = amount_val / current_currency.rate //entered amount in converted currency
|
||||
|
await this.selectedPaymentLine.set_amount(update_amount); |
||||
|
this.selectedPaymentLine.converted_currency = { |
||||
|
'name': current_currency.display_name, |
||||
|
'symbol': current_currency.symbol, |
||||
|
'amount': amount_val |
||||
|
} |
||||
|
$('.multicurrency_input').val('') |
||||
|
$('.conversion_container').css({'display':'none'}) |
||||
|
$('.currecy_list')[0].selectedIndex = 0 |
||||
|
} |
||||
|
else{ |
||||
|
$('.multicurrency_input').css({'border':'1.5px solid red'}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
//For deleting payment line.
|
||||
|
deletePaymentLine(event) { |
||||
|
super.deletePaymentLine(...arguments); |
||||
|
$('.currecy_list')[0].selectedIndex = 0 |
||||
|
$('.conversion_container').css({'display':'none'}) |
||||
|
}, |
||||
|
//Function for updating the payment line dynamically
|
||||
|
_updateSelectedPaymentline(){ |
||||
|
|
||||
|
super._updateSelectedPaymentline(...arguments); |
||||
|
if(this.env.pos.config.enable_multicurrency == true){ |
||||
|
if (this.selectedPaymentLine) { |
||||
|
var change_amount = this.selectedPaymentLine.amount * current_currency.rate; |
||||
|
this.selectedPaymentLine.converted_currency = { |
||||
|
'name': current_currency.display_name, |
||||
|
'symbol': current_currency.symbol, |
||||
|
'amount': change_amount |
||||
|
}; |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
export_for_printing() { |
||||
|
const result = super.export_for_printing(...arguments); |
||||
|
if(this.converted_currency){ |
||||
|
result.converted_currency_amount = this.converted_currency.amount |
||||
|
result.converted_currency_name = this.converted_currency.name |
||||
|
result.converted_currency_symbol = this.converted_currency.symbol |
||||
|
this.currency_amount = this.converted_currency.amount |
||||
|
} |
||||
|
return result; |
||||
|
}, |
||||
|
|
||||
|
async _finalizeValidation() { |
||||
|
const paymentLines = this.currentOrder.paymentlines; |
||||
|
paymentLines.forEach( line => { |
||||
|
if (line.converted_currency) { |
||||
|
console.log("oooo: ", line) |
||||
|
line.payment_currency = line.converted_currency.name; |
||||
|
line.currency_amount = line.converted_currency.amount; |
||||
|
line.currency_symbol = line.converted_currency.symbol; |
||||
|
} |
||||
|
}); |
||||
|
await super._finalizeValidation(); |
||||
|
}, |
||||
|
}); |
@ -0,0 +1,12 @@ |
|||||
|
/** @odoo-module */ |
||||
|
/** Loading all currencies and its parameters.*/ |
||||
|
import { registry } from "@web/core/registry"; |
||||
|
import { PosStore } from "@point_of_sale/app/store/pos_store"; |
||||
|
import { patch } from "@web/core/utils/patch"; |
||||
|
patch(PosStore.prototype, { |
||||
|
async _processData(loadedData) { |
||||
|
await super._processData(...arguments); |
||||
|
this.your_model = loadedData['res.currency']; |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,94 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<!--The 'POS_multi_currency.PosMultiCurrency' class extends the `point_of_sale.PaymentScreen` class and adds--> |
||||
|
<!--multicurrency features to the Point of Sale interface.--> |
||||
|
<t t-inherit="point_of_sale.PaymentScreenTop" t-inherit-mode="extension"> |
||||
|
<xpath expr="//div[hasclass('top-content-center')]" position="before"> |
||||
|
<div class="pos_multicurrency" |
||||
|
style="display: flex;justify-content: center;align-items: center;padding-left: 1%;" |
||||
|
id="pos_multicurrency"> |
||||
|
<h3>Multicurrency</h3> |
||||
|
<input type="checkbox" id="multi_currency_check" |
||||
|
name="multi_currency_check" t-on-click="show_options"/> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</t> |
||||
|
<t t-inherit="point_of_sale.PaymentScreenButtons" t-inherit-mode="extension"> |
||||
|
<xpath expr="//div[hasclass('payment-buttons')]" position="after"> |
||||
|
<div class="multicurrency_container" id="multicurrency_container" |
||||
|
style="display:none;"> |
||||
|
<div> |
||||
|
<h3>Select Currency</h3> |
||||
|
<select class="currecy_list" |
||||
|
style="width: 100%;background: #a8a8a8;border: none;border-radius: 2px;" |
||||
|
t-on-change="compute_currency"> |
||||
|
<option>Choose</option> |
||||
|
</select> |
||||
|
</div> |
||||
|
<div class="conversion_container" style="display:none;"> |
||||
|
<div> |
||||
|
<h3>Currency Conversion</h3> |
||||
|
</div> |
||||
|
<div> |
||||
|
<div class="rate_string"/> |
||||
|
<div>Total Amount = <span class="total_amount"/></div> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<div> |
||||
|
<div>Payment Amount In</div> |
||||
|
<input type="number" id="multicurrency_input" |
||||
|
class="multicurrency_input"/> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<div class="button addpayment" |
||||
|
style="display:flex;align-items:center;justify-content:center;" |
||||
|
t-on-click="(ev) => this.multi_currency_payment_line(payment_methods_from_config[0])"> |
||||
|
<div style="border:2px solid black;padding:5px;width: 54%;"> |
||||
|
Add Cash Payment |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</t> |
||||
|
<!-- This XML code represents an extension of a PaymentLine component in a Point of Sale system.--> |
||||
|
<!--It adds a display for the converted currency amount and symbol after the payment name.--> |
||||
|
<!-- <t t-name="POS_multi_currency.PaymentScreenPaymentLines"--> |
||||
|
<t t-inherit="point_of_sale.PaymentScreenPaymentLines" |
||||
|
t-inherit-mode="extension"> |
||||
|
<xpath expr="//t[@t-if='line.selected']//span[hasclass('payment-name')]" |
||||
|
position="after"> |
||||
|
<div class="payment-currency" |
||||
|
style="margin-left: 10px;margin-right: 10px;padding: 1rem;"> |
||||
|
<t t-if="line.converted_currency"> |
||||
|
(<t t-esc="line.converted_currency.amount"/> |
||||
|
<t t-esc="line.converted_currency.symbol"/>) |
||||
|
</t> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
<xpath expr="//t[@t-else='']//div[hasclass('payment-amount')]" |
||||
|
position="before"> |
||||
|
<div class="payment-currency" |
||||
|
style="margin-left: 10px;margin-right: 10px;padding: 1rem;"> |
||||
|
<t t-if="line.converted_currency"> |
||||
|
(<t t-esc="line.converted_currency.amount"/> |
||||
|
<t t-esc="line.converted_currency.symbol"/>) |
||||
|
</t> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</t> |
||||
|
<!-- This XML code represents an extension of a PaymentLine component in a Point of Sale system.--> |
||||
|
<!--It adds a display for the converted currency amount and symbol after the payment name.--> |
||||
|
<t t-name="POS_multi_currency.OrderReceipt" |
||||
|
t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension"> |
||||
|
<xpath expr="//t[@t-esc='line.name']" position="after"> |
||||
|
<t t-log="line"/> |
||||
|
<t t-if="line.converted_currency_amount"> |
||||
|
<span> |
||||
|
(<t t-esc="line.converted_currency_amount"/><t t-esc="line.converted_currency_symbol"/>) |
||||
|
</span> |
||||
|
</t> |
||||
|
</xpath> |
||||
|
</t> |
||||
|
</templates> |
@ -0,0 +1,50 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<!-- XML record definition for extending the 'res config settings' form view--> |
||||
|
<!--to include Multi Currency settings in the Point of Sale configuration.--> |
||||
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
||||
|
<field name="name">res.config.settings.view.form.inherit.pos.multi.currency.payment</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="inherit_id" |
||||
|
ref="point_of_sale.res_config_settings_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//block[@id='pos_interface_section']" position="after"> |
||||
|
<h2>Multi Currency</h2> |
||||
|
<div class="row mt16 o_settings_container" |
||||
|
id="pos_multi_currency_section"> |
||||
|
<div class="col-12 col-lg-6 o_setting_box" |
||||
|
title="Employees can select the multi currencies."> |
||||
|
<div class="o_setting_left_pane"> |
||||
|
<field name="enable_currency"/> |
||||
|
</div> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<span class="o_form_label">Multi Currency per |
||||
|
Session |
||||
|
</span> |
||||
|
<div class="text-muted"> |
||||
|
Allow to do payments in multiple currencies |
||||
|
</div> |
||||
|
<div class="content-group mt16"> |
||||
|
<group nolabel="1"> |
||||
|
<field colspan="8" name="currency_ids" nolabel="1" invisible="not enable_currency"/> |
||||
|
</group> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Added currency amount and symbol in pos order.--> |
||||
|
<record id="view_pos_pos_form" model="ir.ui.view"> |
||||
|
<field name="name">pos.order.view.form.inherit.pos.multi.currency.payment</field> |
||||
|
<field name="model">pos.order</field> |
||||
|
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='amount']" position="after"> |
||||
|
<field name="currency_amount"/> |
||||
|
<field name="payment_currency"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |