diff --git a/login_using_qr/README.rst b/login_using_qr/README.rst new file mode 100755 index 000000000..1bf96800d --- /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 By QR Code +====================== +Internal users can login by scanning QR Code. + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (v16) muzammil @ cybrosys + +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..7aed67509 --- /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..4cc2cfc50 --- /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': '16.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/redirect_page_templates.xml', + 'views/res_users_views.xml', + ], + 'external_dependencies': { + 'python': ['pyzbar', 'cv2'], + }, + 'license': 'AGPL-3', + 'images': ['static/description/banner.jpg'], + '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..4de1e33ef --- /dev/null +++ b/login_using_qr/authenticate.py @@ -0,0 +1,50 @@ +# -*- 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 odoo +from odoo.http import request +from odoo.modules.registry import Registry +from odoo.http import Session + + +def authenticate_without_passwd(self, dbname, login): + """This function creates a authentication methode without password""" + registry = Registry(dbname) + pre_uid = request.env['res.users'].search([('login', '=', login)]).id + + self.uid = None + self.pre_login = login + self.pre_uid = pre_uid + + with registry.cursor() as cr: + env = odoo.api.Environment(cr, pre_uid, {}) + user = env['res.users'].browse(pre_uid) + if not user._mfa_url(): + self.finalize(env) + + if request and request.session is self and request.db == dbname: + request.env = odoo.api.Environment(request.env.cr, self.uid, + self.context) + request.update_context(**self.context) + return pre_uid + + +Session.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..d9729128f --- /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 qr_scanner diff --git a/login_using_qr/controllers/qr_scanner.py b/login_using_qr/controllers/qr_scanner.py new file mode 100644 index 000000000..6475a4ebb --- /dev/null +++ b/login_using_qr/controllers/qr_scanner.py @@ -0,0 +1,73 @@ +# -*- 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 open_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) + + while True: + ret, frame = cap.read() + gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) + for qr_code in decode(gray): + (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 = users.mapped('login') + if decoded_text in login: + request.session.authenticate_without_passwd( + request.session.db, 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..eac29c18c --- /dev/null +++ b/login_using_qr/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 29.07.2023 +#### Version 16.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..270829d88 --- /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..b625645a6 --- /dev/null +++ b/login_using_qr/models/res_users.py @@ -0,0 +1,61 @@ +# -*- 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 qrcode +except ImportError: + qrcode = None +try: + import base64 +except ImportError: + base64 = None +from io import BytesIO +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 = qrcode.QRCode( + version=1, + error_correction=qrcode.constants.ERROR_CORRECT_L, + box_size=3, + border=4, + ) + qr.add_data(detail.login) + qr.make(fit=True) + img = qr.make_image() + temp = BytesIO() + img.save(temp, format="PNG") + qr_image = base64.b64encode(temp.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..618e3e6c4 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..c1f30354a 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..3415917c2 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..ed11bd818 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.gif b/login_using_qr/static/description/assets/modules/5.gif new file mode 100644 index 000000000..beb106101 Binary files /dev/null and b/login_using_qr/static/description/assets/modules/5.gif differ diff --git a/login_using_qr/static/description/assets/modules/6.png b/login_using_qr/static/description/assets/modules/6.png new file mode 100644 index 000000000..1c98e213f Binary files /dev/null and b/login_using_qr/static/description/assets/modules/6.png 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..48b933a40 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..f166bbf8a 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..babbf1ffc 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..7e84d15d7 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..cfb605d12 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..f9084cf15 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.jpg b/login_using_qr/static/description/banner.jpg new file mode 100644 index 000000000..4c5046cb2 Binary files /dev/null and b/login_using_qr/static/description/banner.jpg 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..736737323 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..71a46cc3f --- /dev/null +++ b/login_using_qr/static/description/index.html @@ -0,0 +1,581 @@ +
+ +
+ +
+
+ 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 using QR Code +

+

Click ->Login With QR +
+ Click the Login With QR and a camera will be open , scan the QR code there.

+ +

+
+ Scan the QR Code

+ +
+
+

Login +

+

User Logged in to their account after scanning the QR

+ +
+
+

If QR not accepted

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

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..0fd007146 --- /dev/null +++ b/login_using_qr/views/login_templates.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/login_using_qr/views/redirect_page_templates.xml b/login_using_qr/views/redirect_page_templates.xml new file mode 100644 index 000000000..8f62e0a30 --- /dev/null +++ b/login_using_qr/views/redirect_page_templates.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..b9b56bbab --- /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