Browse Source

Jan 23 [ADD] : Initial Commit 'pos_customer_wallet_management'

pull/302/head
AjmalCybro 1 year ago
parent
commit
088ebec4b4
  1. 47
      pos_customer_wallet_management/README.rst
  2. 23
      pos_customer_wallet_management/__init__.py
  3. 57
      pos_customer_wallet_management/__manifest__.py
  4. 13
      pos_customer_wallet_management/data/ir_sequence_data.xml
  5. 6
      pos_customer_wallet_management/doc/RELEASE_NOTES.md
  6. 26
      pos_customer_wallet_management/models/__init__.py
  7. 30
      pos_customer_wallet_management/models/account_journal.py
  8. 31
      pos_customer_wallet_management/models/pos_payment_method.py
  9. 61
      pos_customer_wallet_management/models/pos_session.py
  10. 76
      pos_customer_wallet_management/models/res_partner.py
  11. 46
      pos_customer_wallet_management/models/wallet_transaction.py
  12. 3
      pos_customer_wallet_management/security/ir.model.access.csv
  13. BIN
      pos_customer_wallet_management/static/description/assets/icons/check.png
  14. BIN
      pos_customer_wallet_management/static/description/assets/icons/chevron.png
  15. BIN
      pos_customer_wallet_management/static/description/assets/icons/cogs.png
  16. BIN
      pos_customer_wallet_management/static/description/assets/icons/consultation.png
  17. BIN
      pos_customer_wallet_management/static/description/assets/icons/ecom-black.png
  18. BIN
      pos_customer_wallet_management/static/description/assets/icons/education-black.png
  19. BIN
      pos_customer_wallet_management/static/description/assets/icons/hotel-black.png
  20. BIN
      pos_customer_wallet_management/static/description/assets/icons/license.png
  21. BIN
      pos_customer_wallet_management/static/description/assets/icons/lifebuoy.png
  22. BIN
      pos_customer_wallet_management/static/description/assets/icons/manufacturing-black.png
  23. BIN
      pos_customer_wallet_management/static/description/assets/icons/pos-black.png
  24. BIN
      pos_customer_wallet_management/static/description/assets/icons/puzzle.png
  25. BIN
      pos_customer_wallet_management/static/description/assets/icons/restaurant-black.png
  26. BIN
      pos_customer_wallet_management/static/description/assets/icons/service-black.png
  27. BIN
      pos_customer_wallet_management/static/description/assets/icons/trading-black.png
  28. BIN
      pos_customer_wallet_management/static/description/assets/icons/training.png
  29. BIN
      pos_customer_wallet_management/static/description/assets/icons/update.png
  30. BIN
      pos_customer_wallet_management/static/description/assets/icons/user.png
  31. BIN
      pos_customer_wallet_management/static/description/assets/icons/wrench.png
  32. BIN
      pos_customer_wallet_management/static/description/assets/misc/categories.png
  33. BIN
      pos_customer_wallet_management/static/description/assets/misc/check-box.png
  34. BIN
      pos_customer_wallet_management/static/description/assets/misc/compass.png
  35. BIN
      pos_customer_wallet_management/static/description/assets/misc/corporate.png
  36. BIN
      pos_customer_wallet_management/static/description/assets/misc/customer-support.png
  37. BIN
      pos_customer_wallet_management/static/description/assets/misc/cybrosys-logo.png
  38. BIN
      pos_customer_wallet_management/static/description/assets/misc/features.png
  39. BIN
      pos_customer_wallet_management/static/description/assets/misc/logo.png
  40. BIN
      pos_customer_wallet_management/static/description/assets/misc/pictures.png
  41. BIN
      pos_customer_wallet_management/static/description/assets/misc/pie-chart.png
  42. BIN
      pos_customer_wallet_management/static/description/assets/misc/right-arrow.png
  43. BIN
      pos_customer_wallet_management/static/description/assets/misc/star.png
  44. BIN
      pos_customer_wallet_management/static/description/assets/misc/support.png
  45. BIN
      pos_customer_wallet_management/static/description/assets/misc/whatsapp.png
  46. BIN
      pos_customer_wallet_management/static/description/assets/modules/1.png
  47. BIN
      pos_customer_wallet_management/static/description/assets/modules/2.png
  48. BIN
      pos_customer_wallet_management/static/description/assets/modules/3.png
  49. BIN
      pos_customer_wallet_management/static/description/assets/modules/4.png
  50. BIN
      pos_customer_wallet_management/static/description/assets/modules/5.png
  51. BIN
      pos_customer_wallet_management/static/description/assets/modules/6.png
  52. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/hero1.gif
  53. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet-05.png
  54. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet.png
  55. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_01.png
  56. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_02.png
  57. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_03.png
  58. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_04.png
  59. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_06.png
  60. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_07.png
  61. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_08.png
  62. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_09.png
  63. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_10.png
  64. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_12.png
  65. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_13.png
  66. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_14.png
  67. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_15.png
  68. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_16.png
  69. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_17.png
  70. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_18.png
  71. BIN
      pos_customer_wallet_management/static/description/banner.jpg
  72. BIN
      pos_customer_wallet_management/static/description/icon.png
  73. 634
      pos_customer_wallet_management/static/description/index.html
  74. 38
      pos_customer_wallet_management/static/src/js/customerListScreen.js
  75. 73
      pos_customer_wallet_management/static/src/js/payment_method.js
  76. 53
      pos_customer_wallet_management/static/src/js/wallet_recharge.js
  77. 44
      pos_customer_wallet_management/static/src/xml/balance_templates.xml
  78. 12
      pos_customer_wallet_management/static/src/xml/partner_templates.xml
  79. 70
      pos_customer_wallet_management/static/src/xml/wallet_templates.xml
  80. 16
      pos_customer_wallet_management/views/account_journal_views.xml
  81. 18
      pos_customer_wallet_management/views/pos_payment_method_views.xml
  82. 29
      pos_customer_wallet_management/views/res_partner_views.xml
  83. 71
      pos_customer_wallet_management/views/wallet_transaction_views.xml
  84. 22
      pos_customer_wallet_management/wizard/__init__.py
  85. 71
      pos_customer_wallet_management/wizard/recharge_wallet.py
  86. 32
      pos_customer_wallet_management/wizard/recharge_wallet_views.xml

47
pos_customer_wallet_management/README.rst

@ -0,0 +1,47 @@
.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
POS Customer Wallet Management
==============================
This module helps to manage each customer wallet in pos
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon
License
-------
Lesser General Public License, Version 3 (LGPL-3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer: (v16) Sruthi Pavithran,
* Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@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>`__

23
pos_customer_wallet_management/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import wizard

57
pos_customer_wallet_management/__manifest__.py

@ -0,0 +1,57 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'POS Customer Wallet Management',
'version': '16.0.1.0.0',
'category': 'Point of Sale',
'summary': 'This Module Helps to Manage Customer Wallet in POS.',
'description': """This Module Helps to Manage Customer Wallet in POS.""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['base', 'contacts', 'account', 'point_of_sale'],
'data': [
'security/ir.model.access.csv',
'data/ir_sequence_data.xml',
'views/res_partner_views.xml',
'views/wallet_transaction_views.xml',
'views/account_journal_views.xml',
'views/pos_payment_method_views.xml',
'wizard/recharge_wallet_views.xml'
],
'assets': {
'point_of_sale.assets': [
'pos_customer_wallet_management/static/src/js/customerListScreen.js',
'pos_customer_wallet_management/static/src/js/payment_method.js',
'pos_customer_wallet_management/static/src/js/wallet_recharge.js',
'pos_customer_wallet_management/static/src/xml/balance_templates.xml',
'pos_customer_wallet_management/static/src/xml/partner_templates.xml',
'pos_customer_wallet_management/static/src/xml/wallet_templates.xml',
],
},
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

13
pos_customer_wallet_management/data/ir_sequence_data.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Sequence creation for wallet -->
<data noupdate="1">
<record id="seq_wallet_transaction" model="ir.sequence">
<field name="name">Wallet Transaction</field>
<field name="code">wallet.transaction</field>
<field name="prefix">WT</field>
<field name="padding">3</field>
<field name="number_next">1</field>
</record>
</data>
</odoo>

6
pos_customer_wallet_management/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <pos_customer_wallet_management>
#### 18.01.2024
#### Version 16.0.1.0.0
#### ADD
- Initial Commit for POS Customer Wallet Management

26
pos_customer_wallet_management/models/__init__.py

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import account_journal
from . import pos_payment_method
from . import pos_session
from . import res_partner
from . import wallet_transaction

30
pos_customer_wallet_management/models/account_journal.py

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class AccountJournal(models.Model):
"""Adding fields to account journal"""
_inherit = "account.journal"
wallet_journal = fields.Boolean(string="Wallet Journal",
help="Journal for wallet")

31
pos_customer_wallet_management/models/pos_payment_method.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class PosPaymentMethod(models.Model):
"""Adding fields to pos payment method"""
_inherit = "pos.payment.method"
wallet_journal = fields.Boolean(related="journal_id.wallet_journal",
string="Wallet Journal",
help="Journal for wallet")

61
pos_customer_wallet_management/models/pos_session.py

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models
class PosSession(models.Model):
"""Class to load models in to pos session"""
_inherit = "pos.session"
def _pos_ui_models_to_load(self):
"""Load models to pos session"""
result = super()._pos_ui_models_to_load()
result += ['account.journal', 'res.partner', 'pos.payment.method']
return result
def _loader_params_account_journal(self):
"""Load account journal parameters"""
return {
'search_params': {
'fields': [
'name', 'type', 'code', 'default_account_id',
'wallet_journal'
]
}
}
def _get_pos_ui_account_journal(self, params):
"""Get account journal parameter"""
return self.env['account.journal'].search_read(
**params['search_params'])
def _loader_params_res_partner(self):
"""Load res.partner parameters"""
result = super()._loader_params_res_partner()
result['search_params']['fields'].extend(['wallet_balance'])
return result
def _loader_params_pos_payment_method(self):
"""Load payment method parameters"""
result = super()._loader_params_pos_payment_method()
result['search_params']['fields'].extend(['wallet_journal'])
return result

76
pos_customer_wallet_management/models/res_partner.py

@ -0,0 +1,76 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models
class ResPartner(models.Model):
"""Add field into res partner"""
_inherit = 'res.partner'
wallet_balance = fields.Float(string="Wallet Balance",
help="Wallet balance of each employee")
wallet_count = fields.Integer(string="Wallet",
compute='_compute_wallet_count',
help="Count of each wallet recharge")
def action_recharge(self):
"""Open wizard for wallet recharge"""
return {
'name': 'Wallet Recharge',
'type': 'ir.actions.act_window',
'res_model': 'recharge.wallet',
'view_mode': 'form',
'view_type': 'form',
'target': 'new',
}
def action_number_of_wallet(self):
"""Wallet balance tree view"""
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'name': 'Wallet',
'view_mode': 'tree',
'res_model': 'wallet.transaction',
'domain': [('customer', '=', self.name)],
'context': "{'create': False}"
}
def _compute_wallet_count(self):
"""Count of wallet balance"""
for record in self:
record.wallet_count = self.env['wallet.transaction'].search_count(
[('customer', '=', self.name)])
@api.model
def write_value(self, balance, order, session, price, currency_id):
"""Write remaining balance into customer wallet balance"""
self.env['res.partner'].browse(order['id']).write({
'wallet_balance': balance
})
self.env['wallet.transaction'].create({
'type': "Debit",
'customer': order['name'],
'amount': price,
'pos_order': session,
'currency': currency_id,
})

46
pos_customer_wallet_management/models/wallet_transaction.py

@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models
class WalletTransaction(models.Model):
"""Adding wallet transaction fields"""
_name = 'wallet.transaction'
_description = "Create Wallet Transaction Details"
name = fields.Char(string="Name", help="Sequence of wallet transaction")
type = fields.Char(string="Type", help="Type of wallet transaction")
customer = fields.Char(string="Customer",
help="Customer of wallet transaction")
pos_order = fields.Char(string="POS Order",
help="Order reference of wallet transaction")
amount = fields.Float(string="Amount",
help="Amount of wallet transaction")
currency = fields.Char(string="Currency",
help="Currency of wallet transaction")
@api.model
def create(self, vals):
"""Create sequence for wallet transaction"""
vals['name'] = self.env['ir.sequence'].next_by_code(
'wallet.transaction')
return super(WalletTransaction, self).create(vals)

3
pos_customer_wallet_management/security/ir.model.access.csv

@ -0,0 +1,3 @@
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
access_recharge_wallet_user,access.recharge.wallet.user,model_recharge_wallet,base.group_user,1,1,1,1
access_wallet_transaction_user,access.wallet.transaction.user,model_wallet_transaction,base.group_user,1,1,1,1
1 id name model_id/id group_id/id perm_read perm_write perm_create perm_unlink
2 access_recharge_wallet_user access.recharge.wallet.user model_recharge_wallet base.group_user 1 1 1 1
3 access_wallet_transaction_user access.wallet.transaction.user model_wallet_transaction base.group_user 1 1 1 1

BIN
pos_customer_wallet_management/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
pos_customer_wallet_management/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
pos_customer_wallet_management/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
pos_customer_wallet_management/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
pos_customer_wallet_management/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
pos_customer_wallet_management/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
pos_customer_wallet_management/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
pos_customer_wallet_management/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
pos_customer_wallet_management/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
pos_customer_wallet_management/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
pos_customer_wallet_management/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
pos_customer_wallet_management/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
pos_customer_wallet_management/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
pos_customer_wallet_management/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
pos_customer_wallet_management/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
pos_customer_wallet_management/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
pos_customer_wallet_management/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
pos_customer_wallet_management/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
pos_customer_wallet_management/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
pos_customer_wallet_management/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
pos_customer_wallet_management/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
pos_customer_wallet_management/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
pos_customer_wallet_management/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
pos_customer_wallet_management/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
pos_customer_wallet_management/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
pos_customer_wallet_management/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
pos_customer_wallet_management/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
pos_customer_wallet_management/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/hero1.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet-05.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_04.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_06.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_07.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_08.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_09.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
pos_customer_wallet_management/static/description/assets/screenshots/pos_wallet_18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
pos_customer_wallet_management/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
pos_customer_wallet_management/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

634
pos_customer_wallet_management/static/description/index.html

@ -0,0 +1,634 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
POS Customer Wallet Management</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Manage Customer Wallet Management in POS</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero1.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;" />
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This module helps to manage each Customer Wallet in Pos.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Recharge Wallet of Customer</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Wallet Transaction in Point of Sale</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Payment in Invoice</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Wallet Recharge from Pos Session</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Display Wallet Balance of Customer</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create new Wallet Payment Method</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Payment using Customer Wallet Balance</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Wallet Recharge of each Customer
</h3>
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
By clicking WALLET RECHARGE button open a wizard for Wallet Recharge</p>
<img src="assets/screenshots/pos_wallet_01.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can enter the Amount and Journal for recharging</p>
<img src="assets/screenshots/pos_wallet_02.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can see the wallet is now recharged</p>
<img src="assets/screenshots/pos_wallet_03.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can see a Wallet Management menu containing all wallet transaction details in Wallet Transaction menu</p>
<img src="assets/screenshots/pos_wallet_04.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Wallet details of customer when we recharged</p>
<img src="assets/screenshots/pos_wallet-05.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
A payment is created in Invoicing</p>
<img src="assets/screenshots/pos_wallet_06.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can have an option to create new Wallet Journal</p>
<img src="assets/screenshots/pos_wallet_07.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Create a new Payment Method with that journal</p>
<img src="assets/screenshots/pos_wallet_08.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Choose wallet Payment Method from Configuration Settings</p>
<img src="assets/screenshots/pos_wallet_09.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When we enter in to the Pos Session we can see a WALLET RECHARGE button in each partner</p>
<img src="assets/screenshots/pos_wallet_10.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
While clicking the button we can recharge the wallet</p>
<img src="assets/screenshots/pos_wallet.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Customers wallet balance displaying in screen</p>
<img src="assets/screenshots/pos_wallet_12.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When we validate payment with product in order line, There is an option to pay with wallet.</p>
<img src="assets/screenshots/pos_wallet_18.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When we validate payment without one product in order line,it will generate a Warning Message</p>
<img src="assets/screenshots/pos_wallet_13.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When we validate payment without the customer,it will generate a Warning Message</p>
<img src="assets/screenshots/pos_wallet_14.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When the customer have Wallet Balance 0,it will generate a Warning Message</p>
<img src="assets/screenshots/pos_wallet_15.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When the order price is greater than the Wallet Balance it will generate a Warning Message</p>
<img src="assets/screenshots/pos_wallet_16.png" class="img-thumbnail">
<p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Wallet Transaction created</p>
<img src="assets/screenshots/pos_wallet_17.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding:30px">
<div class="carousel-item" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/dashboard_pos/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/custom_receipts_for_pos/#" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/login_pos_direct/#" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/pos_report_generator/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/pos_receipt_extend/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/pos_product_creation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" 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="#demo1" 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>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div><div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" />
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" />
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;" />
</div>
</div>
</div>
<!-- END OF SUPPORT -->

38
pos_customer_wallet_management/static/src/js/customerListScreen.js

@ -0,0 +1,38 @@
odoo.define('pos_customer_wallet_management.customerListScreen', function (require) {
"use strict";
var {PosGlobalState} = require('point_of_sale.models');
const Registries = require('point_of_sale.Registries');
const NewPosGlobalState = (PosGlobalState) => class NewPosGlobalState extends PosGlobalState {
/**
*Override PosGlobalState to load fields in pos session
*/
async _processData(loadedData){
await super._processData(...arguments);
this.account_journal = loadedData['account.journal'];
this.res_partner = loadedData['res.partner'];
this.pos_payment_method = loadedData['pos.payment.method'];
}
}
Registries.Model.extend(PosGlobalState,NewPosGlobalState)
const PartnerLine = require('point_of_sale.PartnerLine');
const ExtendPartnerLine = (PartnerLine) =>
class extends PartnerLine {
/**
*Override PartnerLine
*/
wallet()
{
//Show wallet recharge screen
var partner = this.props.partner;
var data = this.env.pos.account_journal;
this.showScreen('RechargeScreen', {
result : data,
partner : partner,
});
}
}
Registries.Component.extend(PartnerLine, ExtendPartnerLine);
return PartnerLine;
});

73
pos_customer_wallet_management/static/src/js/payment_method.js

@ -0,0 +1,73 @@
odoo.define('pos_customer_wallet_management.payment_method', function (require) {
"use strict";
const Registries = require('point_of_sale.Registries');
const PaymentScreen = require('point_of_sale.PaymentScreen');
const { browser } = require("@web/core/browser/browser");
const payment_method = (PaymentScreen) =>
class extends PaymentScreen {
/**
*Override PaymentScreen
*/
async addNewPaymentLine({ detail: paymentMethod }) {
console.log(this.env.pos.selectedOrder.partner, 'addNewPaymentLine......................')
const orders = this.payment_method;
var order = this.env.pos.selectedOrder.partner;
var select = this.env.pos.selectedOrder.selected_orderline;
var payment = this.env.pos.selectedOrder.selected_paymentline;
if (order == null) {
await this.showPopup('ErrorPopup', {
title: this.env._t('Unknown'),
body: "Choose Customer First",
});
}
else if (select == null) {
await this.showPopup('ErrorPopup', {
title: this.env._t('Product'),
body: "Choose Product First",
});
}
else {
return super.addNewPaymentLine({ detail: paymentMethod });
}
}
async validateOrder(isForceValidate) {
/**
*Override Validate order button
*/
var payment = this.env.pos.selectedOrder.paymentlines;
for (const orderLine of payment) {
if (orderLine.payment_method.wallet_journal) {
var price = orderLine.amount;
var session = this.env.pos.config.current_session_id[1];
var currency_id = this.env.pos.company.currency_id[1];
var order = this.env.pos.selectedOrder.partner;
var wallet_balance = this.env.pos.selectedOrder.partner.wallet_balance;
var quantity = this.env.pos.selectedOrder.selected_orderline.quantity;
var balance = wallet_balance - price;
if (wallet_balance < price) {
await this.showPopup('ErrorPopup', {
title: this.env._t('Unknown'),
body: "Not enough wallet balance",
});
} else {
var rpc = require('web.rpc');
var self = this;
rpc.query({
model: 'res.partner',
method: 'write_value',
args: [balance, order, session, price, currency_id],
}).then(() => {
browser.location.reload();
return super.validateOrder(isForceValidate);
});
}
}
else {
return super.validateOrder(isForceValidate);
}
}
}
}
Registries.Component.extend(PaymentScreen, payment_method);
});

53
pos_customer_wallet_management/static/src/js/wallet_recharge.js

@ -0,0 +1,53 @@
odoo.define('pos_customer_wallet_management.wallet_recharge', function(require) {
'use strict';
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
const PartnerListScreen = require('point_of_sale.PartnerListScreen')
const { browser } = require("@web/core/browser/browser");
const { useRef, onMounted } = owl;
class RechargeScreen extends PosComponent {
/**
*Override PosComponent
*/
setup() {
super.setup();
this.amount_input = useRef("amountInput")
this.journalInput = useRef("journalInput")
onMounted(() => {
this.amount_input.el.value = this.props.amount_input || '';
this.journalInput.el.value = this.props.journalInput || '';
});
}
cancel()
{
this.showScreen("PartnerListScreen")
}
async confirm(partner)
{
// Create front end recharge through rpc
var currency = this.env.pos.currency.name;
var amount_input = this.amount_input.el.value;
var journalInput = this.journalInput.el.value;
if (amount_input.trim() === '' || journalInput.trim() === '') {
return;
}
var rpc = require('web.rpc');
rpc.query({
model: 'recharge.wallet',
method: 'frontend_recharge',
args: [partner,amount_input,currency]
})
this.showScreen("PartnerListScreen")
const { confirmed, payload } = await this.showPopup('ConfirmPopup', {
title: this.env._t('Confirm Popup'),
body: this.env._t('Successfully Recharged Your Wallet'),
});
if (confirmed) {
browser.location.reload();
}
}
}
RechargeScreen.template = 'RechargeScreen';
Registries.Component.add(RechargeScreen);
return RechargeScreen;
});

44
pos_customer_wallet_management/static/src/xml/balance_templates.xml

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Wallet balance of customer in set partner button-->
<templates id="template_id" xml:space="preserve">
<t t-name="ActionpadWidget" t-inherit="point_of_sale.ActionpadWidget"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('actionpad')]/button[1]" position="replace">
<button class="button set-partner"
t-att-class="{'decentered': isLongName}"
t-on-click="() => this.trigger('click-partner')">
<t t-if="!env.isMobile"><i class="fa fa-user" role="img" aria-label="Customer" title="Customer" /></t>
<t t-if="props.partner">
<t t-esc="props.partner.name"/>
<h5>WALLET[<t t-esc="props.partner.wallet_balance.toFixed(2)"/>]</h5>
</t>
<t t-else="">
Customer
</t>
</button>
</xpath>
</t>
<t t-name="PaymentScreen" t-inherit="point_of_sale.PaymentScreen"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('partner-button')]" position="replace">
<div class="button"
t-att-class="{ highlight: currentOrder.get_partner() }"
t-on-click="selectPartner">
<i class="fa fa-user" role="img"
title="Customer"/>
<t t-set="partner" t-value="currentOrder.get_partner()"/>
<span>
<t t-if="partner">
<t t-esc="partner.name"/>
<br/>WALLET[
<t t-esc="partner.wallet_balance"/>
]
</t>
<t t-if="!partner">
Customer
</t>
</span>
</div>
</xpath>
</t>
</templates>

12
pos_customer_wallet_management/static/src/xml/partner_templates.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Wallet recharge button in partner line-->
<templates id="template" xml:space="preserve">onClickWallet
<t t-name="PartnerLine" t-inherit="point_of_sale.PartnerLine"
t-inherit-mode="extension" owl="1">
<xpath expr="//button[hasclass('edit-partner-button')]"
position="after">
<button class="wallet-recharge-button"
t-on-mousedown.prevent="() => this.wallet(props.partner)">WALLET RECHARGE</button>
</xpath>
</t>
</templates>

70
pos_customer_wallet_management/static/src/xml/wallet_templates.xml

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Create wallet recharge screen-->
<templates id="template" xml:space="preserve">
<t t-name="RechargeScreen" owl="1">
<div class="screen-content">
<section class="full-content">
<div class="client-window">
<div class="modal-dialog">
<div class="popup widget order-scroller touch scrollable"
style="width:500px;height:515px;font-size: 13px;">
<div style="margin-top:30px;">
<header>WALLET RECHARGE</header>
</div>
<br/>
<br/>
<label style="margin-right: 333px;">PARTNER NAME</label><br/><br/>
<div>
<input class='form-control booking_field' readonly="True" name="customer" type='text'
style="height:34px;border-radius:5px;"
t-att-value="props.partner.name"/>
</div>
<br/>
<br/>
<label style="margin-right: 333px;">BALANCE AMOUNT</label><br/><br/>
<div>
<input class='form-control booking_field' readonly="True" name="balance" type='text'
style="height:34px;border-radius:5px;"
t-att-value="props.partner.wallet_balance"/>
</div>
<br/><br/>
<label style="margin-right: 333px;">PAYMENT JOURNAL</label>
<br/><br/>
<div>
<select class="form-control journal_field"
name="item_id"
t-ref="journalInput"
style="height:34px;width: 400px;border-radius:5px;">
<t t-foreach="props.result" t-as="item"
t-key="item.id">
<option t-att-value="item.id">
<t t-esc="item.name"/>
</option>
</t>
</select>
</div>
<br/>
<br/>
<label style="margin-right: 308px;">RECHARGE AMOUNT</label><br/><br/>
<div>
<input class='form-control amount_field'
name="amount" type='number'
t-ref="amountInput"
step="0.01" style="height:34px;width: 400px;border-radius:5px;"/>
</div>
<div class="button cancel" t-on-click="cancel"
style="background-color: #FFFFFF;color: black;">
CANCEL
</div>
<div class="button confirm"
t-on-mousedown.prevent="() => this.confirm(props.partner)"
style="background-color: #FFFFFF;color: black;">
ADD
</div>
</div>
</div>
</div>
</section>
</div>
</t>
</templates>

16
pos_customer_wallet_management/views/account_journal_views.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Account journal form view-->
<record id="view_account_journal_form" model="ir.ui.view">
<field name="name">
account.journal.view.form.inherit.pos.customer.wallet.management
</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='type']" position="after">
<field name="wallet_journal"/>
</xpath>
</field>
</record>
</odoo>

18
pos_customer_wallet_management/views/pos_payment_method_views.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- POS payment method form view-->
<record id="pos_payment_method_view_form" model="ir.ui.view">
<field name="name">
pos.payment.method.view.form.inherit.pos.customer.wallet.management
</field>
<field name="model">pos.payment.method</field>
<field name="inherit_id"
ref="point_of_sale.pos_payment_method_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='journal_id']" position="after">
<field name="wallet_journal"
attrs="{'invisible':[('wallet_journal','!=',True)]}"/>
</xpath>
</field>
</record>
</odoo>

29
pos_customer_wallet_management/views/res_partner_views.xml

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Res partner form view-->
<record id="view_partner_form" model="ir.ui.view">
<field name="name">
res.partner.view.form.inherit.pos.customer.wallet.management
</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button class="oe_stat_button" type="object"
name="action_number_of_wallet">
<field string="Wallet" name="wallet_count"
widget="statinfo"/>
</button>
</div>
<xpath expr="//group[@name='misc']" position="before">
<group string="Wallet Balance" name="wallet balance">
<field name="wallet_balance" readonly="True"/>
<div>
<button name="action_recharge" string="Wallet Recharge"
type="object" class="btn btn-secondary"/>
</div>
</group>
</xpath>
</field>
</record>
</odoo>

71
pos_customer_wallet_management/views/wallet_transaction_views.xml

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Wallet transaction model view-->
<record id="wallet_transaction_view_tree" model="ir.ui.view">
<field name="name">
wallet.transaction.view.tree.pos.customer.wallet.management
</field>
<field name="model">wallet.transaction</field>
<field name="arch" type="xml">
<tree string="wallet transaction" create="0" delete="0">
<field name="name"/>
<field name="type"/>
<field name="customer"/>
<field name="pos_order"/>
<field name="amount"/>
<field name="currency"/>
</tree>
</field>
</record>
<record id="wallet_transaction_view_form" model="ir.ui.view">
<field name="name">
wallet.transaction.view.form.pos.customer.wallet.management
</field>
<field name="model">wallet.transaction</field>
<field name="arch" type="xml">
<form string="wallet transaction">
<sheet>
<group>
<field name="name" readonly="True"/>
<field name="type" readonly="True"/>
<field name="customer" readonly="True"/>
<field name="pos_order" readonly="True"/>
<field name="amount" readonly="True"/>
<field name="currency" readonly="True"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="wallet_transaction_view_search" model="ir.ui.view">
<field name="name">wallet.transaction.view.search</field>
<field name="model">wallet.transaction</field>
<field name="arch" type="xml">
<search string="Search Transaction">
<field name="type"/>
<field name="customer"/>
<filter string="Credit" name="type"
domain="[('type', '=', 'Credit')]"/>
<filter string="Debit" name="type"
domain="[('type', '=', 'Debit')]"/>
<group string="Group By">
<filter string="Wallet Type Wise" name="group_by_type"
context="{'group_by': 'type'}"/>
<filter string="Customer Wise" name="group_by_customer"
context="{'group_by': 'customer'}"/>
</group>
</search>
</field>
</record>
<record id="wallet_transaction_action"
model="ir.actions.act_window">
<field name="name">Wallet Transaction</field>
<field name="res_model">wallet.transaction</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="wallet_transaction_menu" name="Wallet Management"
parent="point_of_sale.menu_point_root">
<menuitem id="wallet_transaction_menu_action"
action="wallet_transaction_action"/>
</menuitem>
</odoo>

22
pos_customer_wallet_management/wizard/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import recharge_wallet

71
pos_customer_wallet_management/wizard/recharge_wallet.py

@ -0,0 +1,71 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sruthi Pavithran (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models
class RechargeWallet(models.TransientModel):
"""Wallet recharge fields"""
_name = "recharge.wallet"
_description = "Create Wallet Recharge Of Each Customer"
journal_id = fields.Many2one("account.journal", string="Payment Journal",
help="Select journal type")
recharge_amount = fields.Float(string="Recharge Amount",
help="Recharge amount in wallet")
def action_submit(self):
"""Create wallet recharge and wallet transaction"""
partner = self.env['res.partner'].browse(
self.env.context.get('active_id'))
partner.write({
'wallet_balance': partner.wallet_balance + self.recharge_amount})
self.env['wallet.transaction'].create({
'type': "Credit",
'customer': partner.name,
'amount': self.recharge_amount,
'currency': partner.currency_id.name
})
self.env['account.payment'].create({
'amount': self.recharge_amount,
'ref': "Wallet Recharge",
'payment_type': "inbound",
'partner_id': partner.id
})
@api.model
def frontend_recharge(self, partner, amount_input, currency):
"""Create functions for frontend wallet recharge"""
self.env['wallet.transaction'].create({
'type': "Credit",
'customer': partner['name'],
'amount': amount_input,
'currency': currency
})
self.env['account.payment'].create({
'amount': amount_input,
'ref': "Wallet Recharge",
'payment_type': "inbound",
'partner_id': partner['id']
})
self.env['res.partner'].browse(partner['id']).write({
'wallet_balance': partner['wallet_balance'] + int(amount_input)
})

32
pos_customer_wallet_management/wizard/recharge_wallet_views.xml

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Wizard view for wallet recharge-->
<record id="recharge_wallet_view_form" model="ir.ui.view">
<field name="name">recharge.wallet.view.form</field>
<field name="model">recharge.wallet</field>
<field name="arch" type="xml">
<form string="wizard_view">
<group>
<group>
<field name="journal_id"/>
<field name="recharge_amount"/>
</group>
</group>
<footer>
<button name="action_submit" string="SUBMIT" type="object"
class="oe_highlight"/>
<button string="CANCEL" class="btn-secondary"
special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="recharge_wallet_action" model="ir.actions.act_window">
<field name="name">Wallet Recharge</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">recharge.wallet</field>
<field name="view_mode">form</field>
<field name="view_id" ref="recharge_wallet_view_form"/>
<field name="target">new</field>
</record>
</odoo>
Loading…
Cancel
Save