diff --git a/login_using_qr/README.rst b/login_using_qr/README.rst new file mode 100755 index 000000000..4c9c92327 --- /dev/null +++ b/login_using_qr/README.rst @@ -0,0 +1,37 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Login using QR Code +====================== +Internal users can login by scanning QR Code. + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: muzammil @cybrosys, 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/login_using_qr/__init__.py b/login_using_qr/__init__.py new file mode 100644 index 000000000..a03010494 --- /dev/null +++ b/login_using_qr/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import authenticate +from . import controllers +from . import models diff --git a/login_using_qr/__manifest__.py b/login_using_qr/__manifest__.py new file mode 100644 index 000000000..90a094767 --- /dev/null +++ b/login_using_qr/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'Login using QR Code', + 'version': '14.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """Users can login by scanning QR Code""", + 'description': """A QR code is generated inside the users model, + a Internal user can use this QR code to login to their + account by scanning it""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'http://www.cybrosys.com', + 'depends': ['base', 'website'], + 'data': [ + 'views/login_templates.xml', + 'views/res_users_views.xml', + 'views/redirect_page_views.xml', + ], + 'external_dependencies': { + 'python': ['pyzbar', 'cv2'], + }, + 'license': 'AGPL-3', + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/login_using_qr/authenticate.py b/login_using_qr/authenticate.py new file mode 100644 index 000000000..ce1b536a2 --- /dev/null +++ b/login_using_qr/authenticate.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo.http import OpenERPSession +from odoo.http import request + + +def authenticate_without_passwd(self, db, login=None): + """Authenticate the current user with the details in QR code. + If successful, store the authentication parameters in the + current session and request, unless multi-factor-authentication + is activated. In that case, that last part will be done by + :ref:`finalize`.""" + + uid = request.env['res.users'].search([('login', '=', login)]).id + self.pre_uid = uid + + self.rotate = True + self.db = db + self.login = login + request.disable_db = False + + user = request.env(user=uid)['res.users'].browse(uid) + if not user._mfa_url(): + self.finalize() + return uid + + +OpenERPSession.authenticate_without_passwd = authenticate_without_passwd diff --git a/login_using_qr/controllers/__init__.py b/login_using_qr/controllers/__init__.py new file mode 100644 index 000000000..4ee2408f6 --- /dev/null +++ b/login_using_qr/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import main diff --git a/login_using_qr/controllers/main.py b/login_using_qr/controllers/main.py new file mode 100644 index 000000000..e2af7edae --- /dev/null +++ b/login_using_qr/controllers/main.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +import cv2 +from pyzbar.pyzbar import decode +from odoo.http import Controller, request +from odoo import http + + +class LoginController(Controller): + """controller that works when Login With QR clicked""" + + @http.route(['/web/redirect'], type='http', auth='none', website=True, + csrf=False, csrf_token=None) + def scanner(self): + """This code scan the QR provided and Login to the corresponding user + note: Only Internal User can login through it""" + try: + cap = cv2.VideoCapture(0) + cap.set(3, 640) + cap.set(4, 480) + session = request.session + db_name = request.session.db + + while True: + ret, frame = cap.read() + gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) + qr_codes = decode(gray) + for qr_code in qr_codes: + (x, y, w, h) = qr_code.rect + cv2.rectangle(frame, (x, y), (x + w, y + h), + (0, 255, 0), 2) + decoded_text = qr_code.data.decode("utf-8") + users = request.env['res.users'].search( + [('share', '=', False)]) + login = [val['login'] for val in users] + log = [log.login for log in users.filtered( + lambda l: l.login in login)] + if decoded_text in log: + session.authenticate_without_passwd(db_name, + decoded_text) + cap.release() + cv2.destroyAllWindows() + return request.redirect('/') + else: + cap.release() + cv2.destroyAllWindows() + # Rendering the template of redirect + return request.render("login_using_qr.redirect_to") + + # Display the resulting frame + cv2.imshow('scanner- to exit press "q"', frame) + code = cv2.waitKey(1) + + if code == ord('q'): + cap.release() + cv2.destroyAllWindows() + return request.redirect('/web/login') + except Exception: + return request.render("login_using_qr.be_patient") diff --git a/login_using_qr/doc/RELEASE_NOTES.md b/login_using_qr/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..34901a619 --- /dev/null +++ b/login_using_qr/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 06.04.2023 +#### Version 14.0.1.0.0 +#### ADD + +- Initial commit for Login using QR Code diff --git a/login_using_qr/models/__init__.py b/login_using_qr/models/__init__.py new file mode 100644 index 000000000..6e084b293 --- /dev/null +++ b/login_using_qr/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import res_users diff --git a/login_using_qr/models/res_users.py b/login_using_qr/models/res_users.py new file mode 100644 index 000000000..c7489493a --- /dev/null +++ b/login_using_qr/models/res_users.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +try: + import base64 +except ImportError: + base64 = None +from io import BytesIO +try: + import qrcode +except ImportError: + qrcode = None +from odoo import fields, models, _ +from odoo.exceptions import UserError + + +class ResUsers(models.Model): + """ inherit res.users to add a field in users """ + _inherit = "res.users" + qr_code = fields.Binary('QRcode', compute="_compute_generate_qr", + help="Use this to login (only for internal users)") + + def _compute_generate_qr(self): + """method to generate QR code""" + for detail in self: + if qrcode and base64: + + qr_code = qrcode.QRCode( + version=1, + error_correction=qrcode.constants.ERROR_CORRECT_L, + box_size=3, + border=4, + ) + qr_code.add_data(detail.login) + qr_code.make(fit=True) + img = qr_code.make_image() + memory = BytesIO() + img.save(memory, format="PNG") + qr_image = base64.b64encode(memory.getvalue()) + detail.update({'qr_code': qr_image}) + else: + raise UserError( + _('Necessary Requirements To Run This Operation Is ' + 'Not Satisfied')) diff --git a/login_using_qr/static/description/assets/icons/check.png b/login_using_qr/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/login_using_qr/static/description/assets/icons/check.png differ diff --git a/login_using_qr/static/description/assets/icons/chevron.png b/login_using_qr/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/chevron.png differ diff --git a/login_using_qr/static/description/assets/icons/cogs.png b/login_using_qr/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/cogs.png differ diff --git a/login_using_qr/static/description/assets/icons/consultation.png b/login_using_qr/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/login_using_qr/static/description/assets/icons/consultation.png differ diff --git a/login_using_qr/static/description/assets/icons/ecom-black.png b/login_using_qr/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/ecom-black.png differ diff --git a/login_using_qr/static/description/assets/icons/education-black.png b/login_using_qr/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/login_using_qr/static/description/assets/icons/education-black.png differ diff --git a/login_using_qr/static/description/assets/icons/hotel-black.png b/login_using_qr/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/login_using_qr/static/description/assets/icons/hotel-black.png differ diff --git a/login_using_qr/static/description/assets/icons/license.png b/login_using_qr/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/login_using_qr/static/description/assets/icons/license.png differ diff --git a/login_using_qr/static/description/assets/icons/lifebuoy.png b/login_using_qr/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/login_using_qr/static/description/assets/icons/lifebuoy.png differ diff --git a/login_using_qr/static/description/assets/icons/manufacturing-black.png b/login_using_qr/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/login_using_qr/static/description/assets/icons/manufacturing-black.png differ diff --git a/login_using_qr/static/description/assets/icons/pos-black.png b/login_using_qr/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/pos-black.png differ diff --git a/login_using_qr/static/description/assets/icons/puzzle.png b/login_using_qr/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/puzzle.png differ diff --git a/login_using_qr/static/description/assets/icons/restaurant-black.png b/login_using_qr/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/restaurant-black.png differ diff --git a/login_using_qr/static/description/assets/icons/service-black.png b/login_using_qr/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/login_using_qr/static/description/assets/icons/service-black.png differ diff --git a/login_using_qr/static/description/assets/icons/trading-black.png b/login_using_qr/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/login_using_qr/static/description/assets/icons/trading-black.png differ diff --git a/login_using_qr/static/description/assets/icons/training.png b/login_using_qr/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/login_using_qr/static/description/assets/icons/training.png differ diff --git a/login_using_qr/static/description/assets/icons/update.png b/login_using_qr/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/login_using_qr/static/description/assets/icons/update.png differ diff --git a/login_using_qr/static/description/assets/icons/user.png b/login_using_qr/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/login_using_qr/static/description/assets/icons/user.png differ diff --git a/login_using_qr/static/description/assets/icons/wrench.png b/login_using_qr/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/login_using_qr/static/description/assets/icons/wrench.png differ diff --git a/login_using_qr/static/description/assets/misc/categories.png b/login_using_qr/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/categories.png differ diff --git a/login_using_qr/static/description/assets/misc/check-box.png b/login_using_qr/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/check-box.png differ diff --git a/login_using_qr/static/description/assets/misc/compass.png b/login_using_qr/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/login_using_qr/static/description/assets/misc/compass.png differ diff --git a/login_using_qr/static/description/assets/misc/corporate.png b/login_using_qr/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/login_using_qr/static/description/assets/misc/corporate.png differ diff --git a/login_using_qr/static/description/assets/misc/customer-support.png b/login_using_qr/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/login_using_qr/static/description/assets/misc/customer-support.png differ diff --git a/login_using_qr/static/description/assets/misc/cybrosys-logo.png b/login_using_qr/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/login_using_qr/static/description/assets/misc/cybrosys-logo.png differ diff --git a/login_using_qr/static/description/assets/misc/features.png b/login_using_qr/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/features.png differ diff --git a/login_using_qr/static/description/assets/misc/logo.png b/login_using_qr/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/login_using_qr/static/description/assets/misc/logo.png differ diff --git a/login_using_qr/static/description/assets/misc/pictures.png b/login_using_qr/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/pictures.png differ diff --git a/login_using_qr/static/description/assets/misc/pie-chart.png b/login_using_qr/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/pie-chart.png differ diff --git a/login_using_qr/static/description/assets/misc/right-arrow.png b/login_using_qr/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/right-arrow.png differ diff --git a/login_using_qr/static/description/assets/misc/star.png b/login_using_qr/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/login_using_qr/static/description/assets/misc/star.png differ diff --git a/login_using_qr/static/description/assets/misc/support.png b/login_using_qr/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/support.png differ diff --git a/login_using_qr/static/description/assets/misc/whatsapp.png b/login_using_qr/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/login_using_qr/static/description/assets/misc/whatsapp.png differ diff --git a/login_using_qr/static/description/assets/modules/1.png b/login_using_qr/static/description/assets/modules/1.png new file mode 100644 index 000000000..6d11dfe59 Binary files /dev/null and b/login_using_qr/static/description/assets/modules/1.png differ diff --git a/login_using_qr/static/description/assets/modules/2.png b/login_using_qr/static/description/assets/modules/2.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/login_using_qr/static/description/assets/modules/2.png differ diff --git a/login_using_qr/static/description/assets/modules/3.png b/login_using_qr/static/description/assets/modules/3.png new file mode 100644 index 000000000..844b870eb Binary files /dev/null and b/login_using_qr/static/description/assets/modules/3.png differ diff --git a/login_using_qr/static/description/assets/modules/4.png b/login_using_qr/static/description/assets/modules/4.png new file mode 100644 index 000000000..0f0d5d3c2 Binary files /dev/null and b/login_using_qr/static/description/assets/modules/4.png differ diff --git a/login_using_qr/static/description/assets/modules/5.png b/login_using_qr/static/description/assets/modules/5.png new file mode 100644 index 000000000..713d6dee5 Binary files /dev/null and b/login_using_qr/static/description/assets/modules/5.png differ diff --git a/login_using_qr/static/description/assets/modules/6.gif b/login_using_qr/static/description/assets/modules/6.gif new file mode 100644 index 000000000..474c6e6b9 Binary files /dev/null and b/login_using_qr/static/description/assets/modules/6.gif differ diff --git a/login_using_qr/static/description/assets/screenshots/1.png b/login_using_qr/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..14a7be6a0 Binary files /dev/null and b/login_using_qr/static/description/assets/screenshots/1.png differ diff --git a/login_using_qr/static/description/assets/screenshots/2.png b/login_using_qr/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..6a59c4f3f Binary files /dev/null and b/login_using_qr/static/description/assets/screenshots/2.png differ diff --git a/login_using_qr/static/description/assets/screenshots/3.png b/login_using_qr/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..9255f7e81 Binary files /dev/null and b/login_using_qr/static/description/assets/screenshots/3.png differ diff --git a/login_using_qr/static/description/assets/screenshots/4.png b/login_using_qr/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..3808e84b6 Binary files /dev/null and b/login_using_qr/static/description/assets/screenshots/4.png differ diff --git a/login_using_qr/static/description/assets/screenshots/5.png b/login_using_qr/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..2ec452211 Binary files /dev/null and b/login_using_qr/static/description/assets/screenshots/5.png differ diff --git a/login_using_qr/static/description/assets/screenshots/hero.gif b/login_using_qr/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..76eb95e61 Binary files /dev/null and b/login_using_qr/static/description/assets/screenshots/hero.gif differ diff --git a/login_using_qr/static/description/banner.png b/login_using_qr/static/description/banner.png new file mode 100644 index 000000000..8960b7cb4 Binary files /dev/null and b/login_using_qr/static/description/banner.png differ diff --git a/login_using_qr/static/description/icon.png b/login_using_qr/static/description/icon.png new file mode 100644 index 000000000..cba1fa35e Binary files /dev/null and b/login_using_qr/static/description/icon.png differ diff --git a/login_using_qr/static/description/index.html b/login_using_qr/static/description/index.html new file mode 100644 index 000000000..3eebf118b --- /dev/null +++ b/login_using_qr/static/description/index.html @@ -0,0 +1,577 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Login using QR Code

+

Users can login by scanning QR Code

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps users to login to their account by scanning their QR Code. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Support in Desktop. +
+
+
+
+ + Login by Scanning QR Code +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Print QR Code +

+

Go to Settings ->Users. +
+ Inside the Users QR is generated

+ +
+ +
+

Login by QR Code +

+

Click ->Login With QR + +
+ Camera will be open.

+ +

+
+ Scan the QR Code

+ +
+
+

Login +

+

User Logged in to their account after scanning the QR

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

Configuration +

+
+
+
+

Install opencv(cv2) and pyzbar packages +

+ version of opencv used here version- 4.2.0, + To install opencv version- 4.2.0 please use the comment + 'sudo apt update' + 'sudo apt install libopencv-dev python3-opencv' +
+
+ + + +
+
+ +
+

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/login_using_qr/views/login_templates.xml b/login_using_qr/views/login_templates.xml new file mode 100644 index 000000000..594a8d7f2 --- /dev/null +++ b/login_using_qr/views/login_templates.xml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/login_using_qr/views/redirect_page_views.xml b/login_using_qr/views/redirect_page_views.xml new file mode 100644 index 000000000..6ae9d42bb --- /dev/null +++ b/login_using_qr/views/redirect_page_views.xml @@ -0,0 +1,33 @@ + + + + + + + \ No newline at end of file diff --git a/login_using_qr/views/res_users_views.xml b/login_using_qr/views/res_users_views.xml new file mode 100644 index 000000000..a2eaea700 --- /dev/null +++ b/login_using_qr/views/res_users_views.xml @@ -0,0 +1,14 @@ + + + + + res.users.view.form.inherit.login.using.qr + res.users + + + + + + + + \ No newline at end of file