diff --git a/pos_access_right_hr/README.rst b/pos_access_right_hr/README.rst new file mode 100644 index 000000000..4b11c252a --- /dev/null +++ b/pos_access_right_hr/README.rst @@ -0,0 +1,46 @@ +.. 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 Access Right +================ +To enable or disable POS features depending on the access rights granted to the cashiers + +Configuration +============= +No configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V15) Fathima Mazlin AM, Contact: odoo@cybrosys.com + +Contacts +------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/pos_access_right_hr/__init__.py b/pos_access_right_hr/__init__.py new file mode 100644 index 000000000..6aa2c4890 --- /dev/null +++ b/pos_access_right_hr/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Fathima Mazlin AM() +# +# 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 . +# +############################################################################# +from . import models diff --git a/pos_access_right_hr/__manifest__.py b/pos_access_right_hr/__manifest__.py new file mode 100644 index 000000000..53cad9416 --- /dev/null +++ b/pos_access_right_hr/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Fathima Mazlin AM () +# +# 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 . +# +############################################################################# +{ + 'name': 'POS Access Right', + 'version': '15.0.1.0.0', + "category": 'Point of Sale', + 'summary': 'To Restrict POS features for cashiers', + 'description': 'This app allows you to enable or disable POS features ' + 'depending on the access rights granted to the cashiers', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com/', + 'depends': ['base', 'pos_hr'], + 'data': [ + 'views/hr_employee_views.xml', + ], + 'assets': { + 'point_of_sale.assets': [ + 'pos_access_right_hr/static/src/js/models.js', + 'pos_access_right_hr/static/src/js/NumpadWidget.js', + 'pos_access_right_hr/static/src/js/ActionpadWidget.js', + ], + 'web.assets_qweb': [ + 'pos_access_right_hr/static/src/xml/NumpadWidget.xml', + 'pos_access_right_hr/static/src/xml/ActionpadWidget.xml' + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_access_right_hr/doc/RELEASE_NOTES.md b/pos_access_right_hr/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..8802d8ce3 --- /dev/null +++ b/pos_access_right_hr/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 19.12.2023 +#### Version 15.0.1.0.0 +##### ADD +- Initial commit for POS Access Right diff --git a/pos_access_right_hr/models/__init__.py b/pos_access_right_hr/models/__init__.py new file mode 100644 index 000000000..f556aa42d --- /dev/null +++ b/pos_access_right_hr/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Fathima Mazlin AM() +# +# 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 . +# +############################################################################# +from . import hr_employee diff --git a/pos_access_right_hr/models/hr_employee.py b/pos_access_right_hr/models/hr_employee.py new file mode 100644 index 000000000..a33c92f5a --- /dev/null +++ b/pos_access_right_hr/models/hr_employee.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Fathima Mazlin AM () +# +# 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 . +# +############################################################################# +from odoo import fields, models + + +class HrEmployee(models.Model): + """The inherited class HrEmployee to add new fields to 'hr.employee' """ + _inherit = "hr.employee" + + disable_payment = fields.Boolean( + string="POS-Disable Payment", + help="Disable the payment button on the POS") + disable_customer = fields.Boolean( + string="POS-Disable Customer", + help="Disable the customer selection button on the POS") + disable_plus_minus = fields.Boolean( + string="POS-Disable Plus-Minus", + help="Disable the +/- button on the POS") + disable_numpad = fields.Boolean( + string="POS-Disable Numpad", + help="Disable the number pad on the POS") + disable_qty = fields.Boolean( + string="POS-Disable Qty", + help="Disable the Qty button on the POS") + disable_discount = fields.Boolean( + string="POS-Disable Discount", + help="Disable the %Disc button on the POS") + disable_price = fields.Boolean( + string="POS-Disable price", + help="Disable the %Price button on the POS") + disable_remove_button = fields.Boolean( + string="POS-Disable Remove Button", + help="Disable the back button on the POS") diff --git a/pos_access_right_hr/static/description/assets/icons/check.png b/pos_access_right_hr/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/check.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/chevron.png b/pos_access_right_hr/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/chevron.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/cogs.png b/pos_access_right_hr/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/cogs.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/consultation.png b/pos_access_right_hr/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/consultation.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/ecom-black.png b/pos_access_right_hr/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/ecom-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/education-black.png b/pos_access_right_hr/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/education-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/hotel-black.png b/pos_access_right_hr/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/hotel-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/license.png b/pos_access_right_hr/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/license.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/lifebuoy.png b/pos_access_right_hr/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/manufacturing-black.png b/pos_access_right_hr/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/pos-black.png b/pos_access_right_hr/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/pos-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/puzzle.png b/pos_access_right_hr/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/puzzle.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/restaurant-black.png b/pos_access_right_hr/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/service-black.png b/pos_access_right_hr/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/service-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/trading-black.png b/pos_access_right_hr/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/trading-black.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/training.png b/pos_access_right_hr/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/training.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/update.png b/pos_access_right_hr/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/update.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/user.png b/pos_access_right_hr/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/user.png differ diff --git a/pos_access_right_hr/static/description/assets/icons/wrench.png b/pos_access_right_hr/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/wrench.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/categories.png b/pos_access_right_hr/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/categories.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/check-box.png b/pos_access_right_hr/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/check-box.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/compass.png b/pos_access_right_hr/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/compass.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/corporate.png b/pos_access_right_hr/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/corporate.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/customer-support.png b/pos_access_right_hr/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/customer-support.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/cybrosys-logo.png b/pos_access_right_hr/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/cybrosys-logo.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/features.png b/pos_access_right_hr/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/features.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/logo.png b/pos_access_right_hr/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/logo.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/pictures.png b/pos_access_right_hr/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/pictures.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/pie-chart.png b/pos_access_right_hr/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/pie-chart.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/right-arrow.png b/pos_access_right_hr/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/right-arrow.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/star.png b/pos_access_right_hr/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/star.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/support.png b/pos_access_right_hr/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/support.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/whatsapp.png b/pos_access_right_hr/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/whatsapp.png differ diff --git a/pos_access_right_hr/static/description/assets/modules/custom_receipts_for_pos.jpg b/pos_access_right_hr/static/description/assets/modules/custom_receipts_for_pos.jpg new file mode 100644 index 000000000..e7985dc61 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/custom_receipts_for_pos.jpg differ diff --git a/pos_access_right_hr/static/description/assets/modules/lang_switch_pos.png b/pos_access_right_hr/static/description/assets/modules/lang_switch_pos.png new file mode 100644 index 000000000..f0f224c31 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/lang_switch_pos.png differ diff --git a/pos_access_right_hr/static/description/assets/modules/pos_add_product_webcam_barcode.png b/pos_access_right_hr/static/description/assets/modules/pos_add_product_webcam_barcode.png new file mode 100644 index 000000000..f7be9edcf Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/pos_add_product_webcam_barcode.png differ diff --git a/pos_access_right_hr/static/description/assets/modules/pos_greetings.png b/pos_access_right_hr/static/description/assets/modules/pos_greetings.png new file mode 100644 index 000000000..a2c1f4690 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/pos_greetings.png differ diff --git a/pos_access_right_hr/static/description/assets/modules/pos_product_limit_odoo.png b/pos_access_right_hr/static/description/assets/modules/pos_product_limit_odoo.png new file mode 100644 index 000000000..a6fd947b3 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/pos_product_limit_odoo.png differ diff --git a/pos_access_right_hr/static/description/assets/modules/product_return_pos.png b/pos_access_right_hr/static/description/assets/modules/product_return_pos.png new file mode 100644 index 000000000..be8dd200b Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/product_return_pos.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/0.png b/pos_access_right_hr/static/description/assets/screenshots/0.png new file mode 100644 index 000000000..2307309c2 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/0.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/1.png b/pos_access_right_hr/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..251ba94f3 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/1.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/10.png b/pos_access_right_hr/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..22a6180c0 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/10.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/11.png b/pos_access_right_hr/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..01f9d18c7 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/11.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/12.png b/pos_access_right_hr/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..dc7cef596 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/12.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/13.png b/pos_access_right_hr/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..3c404cf1a Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/13.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/14.png b/pos_access_right_hr/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..3ca293079 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/14.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/2.png b/pos_access_right_hr/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..2e872b76e Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/2.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/3.png b/pos_access_right_hr/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..f78099fed Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/3.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/4.png b/pos_access_right_hr/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..78f52d3e0 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/4.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/5.png b/pos_access_right_hr/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..24fc9c6b5 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/5.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/6.png b/pos_access_right_hr/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..b06fb3bfe Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/6.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/7.png b/pos_access_right_hr/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..f8a0a7505 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/7.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/8.png b/pos_access_right_hr/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..e55068d29 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/8.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/9.png b/pos_access_right_hr/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..0ffb8a6f0 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/9.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/access_right_page.png b/pos_access_right_hr/static/description/assets/screenshots/access_right_page.png new file mode 100644 index 000000000..44041c583 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/access_right_page.png differ diff --git a/pos_access_right_hr/static/description/assets/screenshots/hero.gif b/pos_access_right_hr/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..3577417f4 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/screenshots/hero.gif differ diff --git a/pos_access_right_hr/static/description/banner.jpg b/pos_access_right_hr/static/description/banner.jpg new file mode 100644 index 000000000..5d54dba8c Binary files /dev/null and b/pos_access_right_hr/static/description/banner.jpg differ diff --git a/pos_access_right_hr/static/description/icon.png b/pos_access_right_hr/static/description/icon.png new file mode 100644 index 000000000..5b970af9c Binary files /dev/null and b/pos_access_right_hr/static/description/icon.png differ diff --git a/pos_access_right_hr/static/description/index.html b/pos_access_right_hr/static/description/index.html new file mode 100644 index 000000000..fa81a898b --- /dev/null +++ b/pos_access_right_hr/static/description/index.html @@ -0,0 +1,680 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

+ POS Access Right

+

+ Allows to Enable or Disable POS Features Depending on the Access + Rights Granted to the Cashier.

+ + + +
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module allows admin to restrict particular features of POS from + cashiers such as payment,numpad, qty buttons etc. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Disable or Enable POS features to the specific employee +
+
+ + Can manage access rights for multiple cashiers +
+
+ + Only administrator can control the POS features access rights for employee +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Enable the 'Authorized Employees' option in the Shop + Configuration and select the Employees you wish to limit + access to within the POS.

+ +
+
+

+ Navigate to selected Employees from view and click on the + 'Access Right' page to enable/disable the POS Features.

+ +
+ +
+

+ Enable 'POS-Disable Payment' field, to disable the Payment + button in the POS screen.

+ +
+ +
+

+ The Payment button is disabled on the POS screen

+ +
+ +
+

+ Enable the 'POS-Disable Customer' to disable the Customer + selection button in the POS screen.

+ +
+
+

+ The Customer button is disabled on the POS screen

+ +
+ +
+

+ Enable 'POS-Disable Plus-Minus' and 'POS-Disable Numpad' + field, to disable the Plus-Minus and Numpad + button in the POS screen.

+ +
+
+

+ The Plus-Minus and Numpad button is disabled on the POS + screen

+ +
+
+

+ Enable 'POS-Disable Discount' + field, to disable the Discount + button in the POS screen.

+ +
+
+

+ The % Disc button is disabled on the POS + screen

+ +
+
+

+ Enable 'POS-Disable Qty' field, to disable the Discount + button in the POS screen.

+ +
+
+

+ The Qty button is disabled on the POS + screen

+ +
+
+

+ Enable 'POS-Disable price' field, to disable the Discount + button in the POS screen.

+ +
+
+

+ The Price button is disabled on the POS + screen

+ +
+
+

+ Enable 'POS-Disable Remove Button' field, to disable the remove + button in the POS screen.

+ +
+
+

+ The Remove button is disabled on the POS + screen

+ +
+
+
+ + + +
+
+ +
+

Related + Products +

+
+
+
+ +
+
+ + + +
+
+ +
+

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/pos_access_right_hr/static/src/js/ActionpadWidget.js b/pos_access_right_hr/static/src/js/ActionpadWidget.js new file mode 100644 index 000000000..ae6fec94b --- /dev/null +++ b/pos_access_right_hr/static/src/js/ActionpadWidget.js @@ -0,0 +1,51 @@ +odoo.define('pos_access_right_hr.ActionPad_extension', function(require) { + 'use strict'; + const ActionpadWidget = require('point_of_sale.ActionpadWidget'); + const Registries = require('point_of_sale.Registries'); + /** + Extend the file ActionpadWidget to enable or disable buttons in the + ActionpadWidget + **/ + const ActionpadWidgetAccessRight= ActionpadWidget => class extends ActionpadWidget { + /** + * Disable the customer selection button on the POS + */ + get disable_customer() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_customer == false){ + self.$('#customer_disable').css({ "border": "1px solid #bfbfbf", "background-color": "#e2e2e2","color":"#555555" }); + return false; + } + else{ + self.$('#customer_disable').css({ "border": "1px solid #C9CCD2", "background-color": "#c7c7c7","color":"#a5a1a1" }); + return true; + } + } + else{ + self.$('#customer_disable').css({ "border": "1px solid #bfbfbf", "background-color": "#e2e2e2","color":"#555555" }); + return false; + } + } + /** + * Disable the payment button on the POS + */ + get disable_payment() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_payment == false){ + self.$('#payment_disable').css({ "border": "1px solid #bfbfbf", "background-color": "#e2e2e2","color":"#555555" }); + return false; + } + else{ + self.$('#payment_disable').css({ "border": "1px solid #C9CCD2", "background-color": "#c7c7c7","color":"#a5a1a1" }); + return true; + } + } + else{ + self.$('#payment_disable').css({ "border": "1px solid #bfbfbf", "background-color": "#e2e2e2","color":"#555555" }); + return false; + } + } + }; + Registries.Component.extend(ActionpadWidget, ActionpadWidgetAccessRight); + return ActionpadWidget; +}); diff --git a/pos_access_right_hr/static/src/js/NumpadWidget.js b/pos_access_right_hr/static/src/js/NumpadWidget.js new file mode 100644 index 000000000..9d0397435 --- /dev/null +++ b/pos_access_right_hr/static/src/js/NumpadWidget.js @@ -0,0 +1,86 @@ +odoo.define('pos_access_right_hr.NumpadWidget', function(require) { + 'use strict'; + + const NumpadWidget = require('point_of_sale.NumpadWidget'); + const Registries = require('point_of_sale.Registries'); + /** + Extend the file NumpadWidget to disable or enable the working of + NumpadWidget + **/ + const NumpadWidgetAccessRight= NumpadWidget => class extends NumpadWidget { + /** + * Disable the Qty button on the POS + */ + get disable_quantity() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_qty == false){ + return false; + } + else{ return true;} + } + else{ return false;} + } + /** + * Disable the Price button on the POS + */ + get disable_price() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_price == false){ + return false; + } + else{ return true;} + } + else{ return false;} + } + /** + * Disable the Discount button on the POS + */ + get disable_discount() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_discount == false){ + return false; + } + else{ return true;} + } + else{ return false;} + } + /** + * Disable the +/- button on the POS + */ + get plusminus() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_plus_minus == false){ + return false; + } + else{ return true;} + } + else{ return false;} + } + /** + * Disable the number pad on the POS + */ + get numpad() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_numpad == false){ + return false; + } + else{ return true;} + } + else{ return false;} + } + /** + * Disable the back button on the POS + */ + get remove_button() { + if(this.env.pos.get_cashier()){ + if(this.env.pos.get_cashier().disable_remove_button == false){ + return false; + } + else{ return true;} + } + else{ return false;} + } + }; + Registries.Component.extend(NumpadWidget, NumpadWidgetAccessRight); + return NumpadWidget; +}); diff --git a/pos_access_right_hr/static/src/js/models.js b/pos_access_right_hr/static/src/js/models.js new file mode 100644 index 000000000..e43abd727 --- /dev/null +++ b/pos_access_right_hr/static/src/js/models.js @@ -0,0 +1,16 @@ +odoo.define('pos_access_right_hr.models', function(require) { + 'use strict'; + + var models = require('point_of_sale.models'); + /** + To load fields from hr.employee into pos + **/ + models.load_fields('hr.employee', 'disable_payment'); + models.load_fields('hr.employee', 'disable_customer'); + models.load_fields('hr.employee', 'disable_plus_minus'); + models.load_fields('hr.employee', 'disable_numpad'); + models.load_fields('hr.employee', 'disable_qty'); + models.load_fields('hr.employee', 'disable_discount'); + models.load_fields('hr.employee', 'disable_price'); + models.load_fields('hr.employee', 'disable_remove_button'); +}); diff --git a/pos_access_right_hr/static/src/xml/ActionpadWidget.xml b/pos_access_right_hr/static/src/xml/ActionpadWidget.xml new file mode 100644 index 000000000..185ccdf00 --- /dev/null +++ b/pos_access_right_hr/static/src/xml/ActionpadWidget.xml @@ -0,0 +1,43 @@ + + + + + +
+ + + +
+
+
+
diff --git a/pos_access_right_hr/static/src/xml/NumpadWidget.xml b/pos_access_right_hr/static/src/xml/NumpadWidget.xml new file mode 100644 index 000000000..994e0a47d --- /dev/null +++ b/pos_access_right_hr/static/src/xml/NumpadWidget.xml @@ -0,0 +1,84 @@ + + + + + +
+ + + + + + + + + + + + + + + + +
+
+
+
diff --git a/pos_access_right_hr/views/hr_employee_views.xml b/pos_access_right_hr/views/hr_employee_views.xml new file mode 100644 index 000000000..f1891cc33 --- /dev/null +++ b/pos_access_right_hr/views/hr_employee_views.xml @@ -0,0 +1,31 @@ + + + + + hr.employee.view.form.inherit.pos.access.right.hr + hr.employee + form + + + + + + + + + + + + + + + + + + + + + + +