Browse Source

July 4: [ADD] Initial commit 'pos_customer_wallet_management'

pull/254/merge
RisvanaCybro 10 months ago
parent
commit
3c1992865e
  1. 47
      pos_customer_wallet_management/README.rst
  2. 23
      pos_customer_wallet_management/__init__.py
  3. 60
      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. 25
      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. 76
      pos_customer_wallet_management/models/res_partner.py
  10. 46
      pos_customer_wallet_management/models/wallet_transaction.py
  11. 3
      pos_customer_wallet_management/security/ir.model.access.csv
  12. BIN
      pos_customer_wallet_management/static/description/assets/icons/check.png
  13. BIN
      pos_customer_wallet_management/static/description/assets/icons/chevron.png
  14. BIN
      pos_customer_wallet_management/static/description/assets/icons/cogs.png
  15. BIN
      pos_customer_wallet_management/static/description/assets/icons/consultation.png
  16. BIN
      pos_customer_wallet_management/static/description/assets/icons/ecom-black.png
  17. BIN
      pos_customer_wallet_management/static/description/assets/icons/education-black.png
  18. BIN
      pos_customer_wallet_management/static/description/assets/icons/hotel-black.png
  19. BIN
      pos_customer_wallet_management/static/description/assets/icons/license.png
  20. BIN
      pos_customer_wallet_management/static/description/assets/icons/lifebuoy.png
  21. BIN
      pos_customer_wallet_management/static/description/assets/icons/logo.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/l1.png
  47. BIN
      pos_customer_wallet_management/static/description/assets/modules/l2.png
  48. BIN
      pos_customer_wallet_management/static/description/assets/modules/l3.png
  49. BIN
      pos_customer_wallet_management/static/description/assets/modules/l4.png
  50. BIN
      pos_customer_wallet_management/static/description/assets/modules/l5.png
  51. BIN
      pos_customer_wallet_management/static/description/assets/modules/l6.png
  52. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/1.png
  53. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/10.png
  54. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/11.png
  55. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/12.png
  56. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/13.png
  57. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/14.png
  58. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/15.png
  59. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/16.png
  60. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/17.png
  61. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/18.png
  62. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/2.png
  63. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/3.png
  64. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/4.png
  65. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/5.png
  66. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/6.png
  67. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/7.png
  68. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/8.png
  69. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/9.png
  70. BIN
      pos_customer_wallet_management/static/description/assets/screenshots/hero.gif
  71. BIN
      pos_customer_wallet_management/static/description/banner.png
  72. BIN
      pos_customer_wallet_management/static/description/icon.png
  73. 773
      pos_customer_wallet_management/static/description/index.html
  74. 24
      pos_customer_wallet_management/static/src/js/ClientLine.js
  75. 7
      pos_customer_wallet_management/static/src/js/Models.js
  76. 68
      pos_customer_wallet_management/static/src/js/payment_method.js
  77. 55
      pos_customer_wallet_management/static/src/js/wallet_recharge.js
  78. 47
      pos_customer_wallet_management/static/src/xml/balance_templates.xml
  79. 10
      pos_customer_wallet_management/static/src/xml/partner_templates.xml
  80. 58
      pos_customer_wallet_management/static/src/xml/wallet_templates.xml
  81. 14
      pos_customer_wallet_management/views/account_journal_views.xml
  82. 16
      pos_customer_wallet_management/views/pos_payment_method_views.xml
  83. 27
      pos_customer_wallet_management/views/res_partner_views.xml
  84. 67
      pos_customer_wallet_management/views/wallet_transaction_views.xml
  85. 22
      pos_customer_wallet_management/wizard/__init__.py
  86. 71
      pos_customer_wallet_management/wizard/recharge_wallet.py
  87. 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/license-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
Configuration
=============
* No additional configuration required
Company
-------
*`Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
Lesser General Public License, Version 3 (LGPL-3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Credits
-------
Developer : (V15) Bhagyadev KP, 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 further 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: Bhagyadev K P(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

60
pos_customer_wallet_management/__manifest__.py

@ -0,0 +1,60 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev K P(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': '15.0.1.0.0',
'category': 'Point of Sale',
'summary': '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': ['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/ClientLine.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/js/Models.js',
],
'web.assets_qweb': [
'pos_customer_wallet_management/static/src/xml/partner_templates.xml',
'pos_customer_wallet_management/static/src/xml/balance_templates.xml',
'pos_customer_wallet_management/static/src/xml/wallet_templates.xml',
],
},
'images': ['static/description/banner.png'],
'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>
#### 27.06.2024
#### Version 15.0.1.0.0
#### ADD
- Initial Commit for POS Customer Wallet Management

25
pos_customer_wallet_management/models/__init__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Bhagyadev K P(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 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: Bhagyadev K P(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: Bhagyadev K P(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")

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: Bhagyadev K P(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: Bhagyadev K P(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/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 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/l1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

BIN
pos_customer_wallet_management/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
pos_customer_wallet_management/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

773
pos_customer_wallet_management/static/description/index.html

@ -0,0 +1,773 @@
<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: #875A7B; 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: #017E84; 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">
<!-- APP HERO -->
<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/hero.gif" class="img-responsive"
width="100%" height="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: 40px; margin-bottom: 40px">
<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>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<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>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<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>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<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>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<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>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<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 class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<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>
<!-- 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: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
By clicking WALLET RECHARGE button, open a wizard for wallet recharge.
</p>
<img src="assets/screenshots/1.png" class="img-thumbnail">
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can enter the amount and journal for recharging.
</p>
<img src="assets/screenshots/2.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can see the wallet is now recharged.
</p>
<img src="assets/screenshots/3.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; 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/4.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Wallet details of customer when we recharged.
</p>
<img src="assets/screenshots/5.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
A payment is created in the Invoicing.
</p>
<img src="assets/screenshots/6.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can have an option to create new wallet journal.
</p>
<img src="assets/screenshots/7.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Create a new payment method with that journal.
</p>
<img src="assets/screenshots/8.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Choose wallet payment method from POS configuration.
</p>
<img src="assets/screenshots/9.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When we enter in to the Pos session and choose a customer to see a WALLET RECHARGE button in each partner.
</p>
<img src="assets/screenshots/10.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
While clicking the button we can recharge the wallet.
</p>
<img src="assets/screenshots/11.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Customers wallet balance displaying in screen.
</p>
<img src="assets/screenshots/12.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; 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/13.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; 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/14.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; 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/15.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; 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/16.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When the order price is greater than the wallet balance it will generate a warning wessage.
</p>
<img src="assets/screenshots/17.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Wallet Transaction created.
</p>
<img src="assets/screenshots/18.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/pos_credit_limit/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/l1.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/15.0/pos_report_generator/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/l2.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/15.0/dashboard_pos/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/l3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/login_pos_direct/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/l4.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/15.0/pos_book_order/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/l5.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/15.0/multi_barcodes_pos/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/l6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;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="right:-25px;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 -->
<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/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<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>
</div>
<!-- OUR INDUSTRIES -->
<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/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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>
</div>
<!-- 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 -->
</div>

24
pos_customer_wallet_management/static/src/js/ClientLine.js

@ -0,0 +1,24 @@
odoo.define('pos_customer_wallet_management.customerListScreen', function (require) {
"use strict";
const ClientLine = require('point_of_sale.ClientLine');
const Registries = require('point_of_sale.Registries');
// Extending ClientLine class
const WalletClientLine = (ClientLine) =>
class extends ClientLine {
/**
*Override PartnerLine
*/
wallet() {
//Show wallet recharge screen
var partner = this.props.partner;
var data = this.env.pos.payment_methods;
this.showScreen('RechargeScreen', {
result: data,
partner: partner,
});
}
}
Registries.Component.extend(ClientLine, WalletClientLine);
return ClientLine;
});

7
pos_customer_wallet_management/static/src/js/Models.js

@ -0,0 +1,7 @@
odoo.define('pos_customer_wallet_management.models', function (require) {
'use strict';
// Adding fileds to POS
const models = require('point_of_sale.models');
models.load_fields('res.partner', 'wallet_balance');
models.load_fields('pos.payment.method', 'wallet_journal');
});

68
pos_customer_wallet_management/static/src/js/payment_method.js

@ -0,0 +1,68 @@
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");
// Extending PaymentScreen
const payment_method = PaymentScreen => class extends PaymentScreen {
/**
*Override PaymentScreen
*/
async addNewPaymentLine({detail: paymentMethod}) {
const orders = this.payment_methods_from_config;
var current_order = this.env.pos.get_order()
var order = current_order.attributes.client;
var select = current_order.selected_orderline;
if (order == null) {
await this.showPopup('ErrorPopup', {
title: this.env._t('Customer'),
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 selected_order = this.env.pos.get_order()
var payment = selected_order.selected_paymentline;
if (payment.payment_method.wallet_journal) {
var price = payment.amount;
var session = this.env.pos.config.current_session_id[1];
var currency_id = this.env.pos.company.currency_id[1];
var order = selected_order.attributes.client;
var wallet_balance = order.wallet_balance;
var quantity = selected_order.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);
});

55
pos_customer_wallet_management/static/src/js/wallet_recharge.js

@ -0,0 +1,55 @@
odoo.define('pos_customer_wallet_management.recharge_wallet', function (require) {
"use strict";
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
const ClientListScreen = require('point_of_sale.ClientListScreen');
const { browser } = require("@web/core/browser/browser");
const { useRef, onMounted } = owl.hooks;
// Extending POSComponent class
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("ClientListScreen")
}
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("ClientListScreen")
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;
})

47
pos_customer_wallet_management/static/src/xml/balance_templates.xml

@ -0,0 +1,47 @@
<?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-customer"
t-att-class="{'decentered': isLongName}"
t-on-click="trigger('click-customer')">
<t t-if="!env.isMobile"><i class="fa fa-user" role="img" aria-label="Customer" title="Customer" /></t>
<t t-if="client">
<t t-esc="client.name"/>
<t t-if="client.wallet_balance ! = '0.00'">
<h5>WALLET[<t
t-esc="client.wallet_balance.toFixed(2)"/>]</h5>
</t>
</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('customer-button')]"
position="replace">
<div class="customer-button">
<div class="button"
t-att-class="{ highlight: env.pos.get_client() }"
t-on-click="selectClient">
<i class="fa fa-user" role="img"
aria-label="Customer"
title="Customer"/>
<span class="js_customer_name">
<t t-if="env.pos.get_client()">
<t t-esc="env.pos.get_client().name"/><br/>
<t>WALLET[<t t-esc="env.pos.get_client().wallet_balance"/>]</t>
</t>
<t t-if="!env.pos.get_client()">
Customer
</t>
</span>
</div>
</div>
</xpath>
</t>
</templates>

10
pos_customer_wallet_management/static/src/xml/partner_templates.xml

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

58
pos_customer_wallet_management/static/src/xml/wallet_templates.xml

@ -0,0 +1,58 @@
<?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>

14
pos_customer_wallet_management/views/account_journal_views.xml

@ -0,0 +1,14 @@
<?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>

16
pos_customer_wallet_management/views/pos_payment_method_views.xml

@ -0,0 +1,16 @@
<?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>

27
pos_customer_wallet_management/views/res_partner_views.xml

@ -0,0 +1,27 @@
<?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>

67
pos_customer_wallet_management/views/wallet_transaction_views.xml

@ -0,0 +1,67 @@
<?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</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</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: Bhagyadev K P(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: Bhagyadev K P(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