diff --git a/pos_access_right_hr/README.rst b/pos_access_right_hr/README.rst new file mode 100644 index 000000000..6a00a6d2e --- /dev/null +++ b/pos_access_right_hr/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS Access Right +================ +To enable or disable POS features depending on the access rights granted to the cashiers + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +======= +General Public License, version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer : (V17) 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 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..3f65824d5 --- /dev/null +++ b/pos_access_right_hr/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# 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..43820c1d6 --- /dev/null +++ b/pos_access_right_hr/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +{ + 'name': 'POS Access Right', + 'version': '17.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': ['pos_hr'], + 'data': [ + 'views/hr_employee_views.xml', + ], + 'assets': { + 'point_of_sale._assets_pos': [ + 'pos_access_right_hr/static/src/js/PosStore.js', + 'pos_access_right_hr/static/src/js/ActionpadWidget.js', + 'pos_access_right_hr/static/src/js/ProductScreen.js', + 'pos_access_right_hr/static/src/xml/ActionpadWidget.xml' + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-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..9dffa10fa --- /dev/null +++ b/pos_access_right_hr/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 20.01.2024 +#### Version 17.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..cd595472e --- /dev/null +++ b/pos_access_right_hr/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from .import hr_employee_base +from .import pos_session diff --git a/pos_access_right_hr/models/hr_employee_base.py b/pos_access_right_hr/models/hr_employee_base.py new file mode 100644 index 000000000..80006551c --- /dev/null +++ b/pos_access_right_hr/models/hr_employee_base.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from odoo import fields, models + + +class HrEmployeeBase(models.AbstractModel): + """The inherited class HrEmployee to add new fields to 'hr.employee' """ + _inherit = "hr.employee.base" + + 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/models/pos_session.py b/pos_access_right_hr/models/pos_session.py new file mode 100644 index 000000000..0d23b3d73 --- /dev/null +++ b/pos_access_right_hr/models/pos_session.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from odoo import models + + +class PosSession(models.Model): + """ + The inherited class PosSession to add new fields and models to pos.session + """ + _inherit = 'pos.session' + + def _loader_params_hr_employee(self): + """ + Method for loading hr_employee fields to pos.session + :return: dictionary containing hr_employee access right fields + """ + result = super()._loader_params_hr_employee() + result['search_params']['fields'].extend( + ['disable_payment', 'disable_customer', 'disable_plus_minus', + 'disable_numpad', 'disable_qty', 'disable_discount', + 'disable_price', 'disable_remove_button']) + return result diff --git a/pos_access_right_hr/static/description/assets/icons/capture (1).png b/pos_access_right_hr/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/capture (1).png differ 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/img.png b/pos_access_right_hr/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/img.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/photo-capture.png b/pos_access_right_hr/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/pos_access_right_hr/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/misc/Cybrosys R.png differ diff --git a/pos_access_right_hr/static/description/assets/misc/email.svg b/pos_access_right_hr/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_access_right_hr/static/description/assets/misc/phone.svg b/pos_access_right_hr/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/pos_access_right_hr/static/description/assets/misc/star (1) 2.svg b/pos_access_right_hr/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_access_right_hr/static/description/assets/misc/support (1) 1.svg b/pos_access_right_hr/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_access_right_hr/static/description/assets/misc/support-email.svg b/pos_access_right_hr/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/pos_access_right_hr/static/description/assets/misc/tick-mark.svg b/pos_access_right_hr/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/pos_access_right_hr/static/description/assets/misc/whatsapp 1.svg b/pos_access_right_hr/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/pos_access_right_hr/static/description/assets/misc/whatsapp.svg b/pos_access_right_hr/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/pos_access_right_hr/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pos_access_right_hr/static/description/assets/modules/1.jpg b/pos_access_right_hr/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..08bbafeb6 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/1.jpg differ diff --git a/pos_access_right_hr/static/description/assets/modules/2.png b/pos_access_right_hr/static/description/assets/modules/2.png new file mode 100644 index 000000000..a1209a01f Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/2.png differ diff --git a/pos_access_right_hr/static/description/assets/modules/3.jpg b/pos_access_right_hr/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..3d171226b Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/3.jpg differ diff --git a/pos_access_right_hr/static/description/assets/modules/4.jpg b/pos_access_right_hr/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..1f3f2e27f Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/4.jpg differ diff --git a/pos_access_right_hr/static/description/assets/modules/5.jpg b/pos_access_right_hr/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..0db717519 Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/5.jpg differ diff --git a/pos_access_right_hr/static/description/assets/modules/6.jpg b/pos_access_right_hr/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..cd62a577c Binary files /dev/null and b/pos_access_right_hr/static/description/assets/modules/6.jpg 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..4c682e01e 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/2.png b/pos_access_right_hr/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..92422b5c2 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..659345b8d 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..69f5e1561 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..5b0fb487a 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..fae38a413 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..2d338816c 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..ac49ac0f2 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..0396a8b49 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/hero.gif b/pos_access_right_hr/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..cc4fcf8ba 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..614902f75 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..45de874d1 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..ab017b215 --- /dev/null +++ b/pos_access_right_hr/static/description/index.html @@ -0,0 +1,774 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+
+
+
+
+

POS Access Right

+

+ This app allows you to enable or disable POS features depending on the access rights granted to the cashiers. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ 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.

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

+ Need to enable 'Multi Employees per Session' and select employees that you want to restrict access to the POS.

+
+
+
+
+
+
+ +
+
+

+ Allow the Payment button on the POS screen to be disabled.

+
+
+
+
+
+
+ +
+
+

+ The Payment button is disabled on the POS screen.

+
+
+
+ +
+
+
+ +
+
+

+ Allow the Customer button on the POS screen to be disabled.

+
+
+
+
+
+
+ +
+
+

+ The Customer button is disabled on the POS screen.

+
+
+
+
+
+
+ +
+
+

+ Allow the Plus-Minus and Numpad button on the POS screen to be disabled.

+
+
+
+
+
+
+ +
+
+

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

+
+
+
+
+
+
+ +
+
+

+ Allow the Discount,Qty,Price, and Remove buttons on the POS screen to be disabled.

+
+
+
+
+
+
+ +
+
+

+ The Discount,Qty,Price, and Remove buttons is disabled on the POS screen.

+
+
+
+
+
+
+
    +
  • + 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. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:20th January 2024 +
+

+ Initial Commit for POS Access Right.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + 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..d38c33a05 --- /dev/null +++ b/pos_access_right_hr/static/src/js/ActionpadWidget.js @@ -0,0 +1,24 @@ +/** @odoo-module */ +import { patch } from "@web/core/utils/patch"; +import { ActionpadWidget } from "@point_of_sale/app/screens/product_screen/action_pad/action_pad"; + +//Patching ActionpadWidget to disable customer and payment +patch(ActionpadWidget.prototype, { + setup() { + super.setup(); + }, + disable_customer() { + if (this.pos.cashier.disable_customer) { + return true; + } else { + return false; + } + }, + disable_payment() { + if (this.pos.cashier.disable_payment) { + return true; + } else { + return false; + } + } +}); diff --git a/pos_access_right_hr/static/src/js/PosStore.js b/pos_access_right_hr/static/src/js/PosStore.js new file mode 100644 index 000000000..9541e90cd --- /dev/null +++ b/pos_access_right_hr/static/src/js/PosStore.js @@ -0,0 +1,12 @@ +/** @odoo-module */ +import { patch } from "@web/core/utils/patch"; +import { PosStore } from "@point_of_sale/app/store/pos_store"; + +//Patching the PosStore to load the data from the model hr.employee +patch(PosStore.prototype, { + //For loading the data from the model hr.employee + async _processData(loadedData) { + await super._processData(...arguments); + this.session_employee = loadedData["hr.employee"]; + } +}); diff --git a/pos_access_right_hr/static/src/js/ProductScreen.js b/pos_access_right_hr/static/src/js/ProductScreen.js new file mode 100644 index 000000000..3b630722b --- /dev/null +++ b/pos_access_right_hr/static/src/js/ProductScreen.js @@ -0,0 +1,35 @@ +/** @odoo-module **/ + +import { ProductScreen } from "@point_of_sale/app/screens/product_screen/product_screen"; +import { patch } from "@web/core/utils/patch"; + +//Patching ProductScreen to disable buttons +patch(ProductScreen.prototype, { + setup() { + super.setup(...arguments); + }, + getNumpadButtons() { + return [ + { value: "1", disabled: this.pos.cashier.disable_numpad }, + { value: "2", disabled: this.pos.cashier.disable_numpad }, + { value: "3", disabled: this.pos.cashier.disable_numpad }, + { value: "quantity", text: "Qty", disabled: this.pos.cashier.disable_qty }, + { value: "4", disabled: this.pos.cashier.disable_numpad }, + { value: "5", disabled: this.pos.cashier.disable_numpad }, + { value: "6", disabled: this.pos.cashier.disable_numpad }, + { value: "discount", text: "% Disc", disabled: !this.pos.config.manual_discount || this.pos.cashier.disable_discount }, + { value: "7", disabled: this.pos.cashier.disable_numpad }, + { value: "8", disabled: this.pos.cashier.disable_numpad }, + { value: "9", disabled: this.pos.cashier.disable_numpad }, + { value: "price", text: "Price", disabled: !this.pos.cashierHasPriceControlRights() || this.pos.cashier.disable_price }, + { value: "-", text: "+/-", disabled: this.pos.cashier.disable_plus_minus }, + { value: "0", disabled: this.pos.cashier.disable_numpad }, + { value: this.env.services.localization.decimalPoint, disabled: this.pos.cashier.disable_numpad }, +// Unicode: https://www.compart.com/en/unicode/U+232B + { value: "Backspace", text: "⌫", disabled: this.pos.cashier.disable_remove_button }, + ].map((button) => ({ + ...button, + class: this.pos.numpadMode === button.value ? "active border-primary" : "", + })); + } +}); 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..e5bcf896b --- /dev/null +++ b/pos_access_right_hr/static/src/xml/ActionpadWidget.xml @@ -0,0 +1,45 @@ + + + + + +
+ + + +
+
+
+
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..0ee1ae5c7 --- /dev/null +++ b/pos_access_right_hr/views/hr_employee_views.xml @@ -0,0 +1,30 @@ + + + + + hr.employee.view.form.inherit.pos.access.right.hr + hr.employee + form + + + + + + + + + + + + + + + + + + + + + + +