diff --git a/login_user_details_save/README.rst b/login_user_details_save/README.rst new file mode 100644 index 000000000..fbc43a039 --- /dev/null +++ b/login_user_details_save/README.rst @@ -0,0 +1,43 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/Lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Save User's Login info +======================= +This module allows us to Save User's Login info For Odoo 16. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Credits +------- +Developers: Version 16 - Swaroop N P @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: ``__ \ No newline at end of file diff --git a/login_user_details_save/__init__.py b/login_user_details_save/__init__.py new file mode 100644 index 000000000..ac4e597fe --- /dev/null +++ b/login_user_details_save/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Swaroop N P (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import controllers +from . import models diff --git a/login_user_details_save/__manifest__.py b/login_user_details_save/__manifest__.py new file mode 100644 index 000000000..9f4859610 --- /dev/null +++ b/login_user_details_save/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Swaroop N P (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': "Save User's Login info", + 'category': 'Extra Tools', + 'version': '16.0.1.0.0', + 'description': """ + This app allows us to save our login info , our name will be + displayed in login page and we can click on it and it automatically + fills our username + """, + 'summary': """ + Allows us to save our login info for easier access next time + """, + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'website', 'web'], + 'data': [ + 'security/ir.model.access.csv', + 'views/logout_popup_view.xml', + 'views/templates.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'login_user_details_save/static/src/js/logout_replace.js', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/login_user_details_save/controllers/__init__.py b/login_user_details_save/controllers/__init__.py new file mode 100644 index 000000000..f30067f58 --- /dev/null +++ b/login_user_details_save/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Swaroop N P (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import main diff --git a/login_user_details_save/controllers/main.py b/login_user_details_save/controllers/main.py new file mode 100644 index 000000000..b2adb5f59 --- /dev/null +++ b/login_user_details_save/controllers/main.py @@ -0,0 +1,130 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Swaroop N P (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import odoo +from odoo import http +from odoo.http import request +from odoo.tools.translate import _ +from odoo.addons.web.controllers.home import Home as WebHome +from odoo.addons.web.controllers.session import Session +from odoo.addons.web.controllers.utils import ensure_db + +# Shared parameters for all login/signup flows +SIGN_UP_REQUEST_PARAMS = {'db', 'login', 'debug', 'token', 'message', 'error', + 'scope', 'mode', + 'redirect', 'redirect_hostname', 'email', 'name', + 'partner_id', + 'password', 'confirm_password', 'city', 'country_id', + 'lang'} + + +class SessionWebsite(Session): + """Extended session controller for website-related operation""" + + @http.route('/web/session/logout_popup', type='http', auth="public", + website=True) + def logout_popup(self): + """Render the logout popup template""" + login_details = request.env['logout.popup'].search( + [('user_id', '=', int(request.uid))]) + values = { + 'login_details': login_details.save_details if login_details + else False + } + return request.render('login_user_details_save.logout_popup_template', + values) + + @http.route('/web/session/save_logout', type='http', auth="public", + website=True, csrf=False) + def save_logout_details(self, **post): + """Save user details when 'save login details' checkbox is checked""" + login_name = request.env.user.login + logout_details_obj = request.env['logout.popup'] + record = logout_details_obj.search( + [('user_id', '=', request.uid)]) + if post.get('rememberMeCheckbox') and not record: + logout_details_obj.create({ + 'name': login_name, + 'save_details': True, + 'user_id': request.uid + }) + if record and not post.get('rememberMeCheckbox'): + record.unlink() + return request.redirect('/web/session/logout') + + +class Home(WebHome): + """Extended Home controller for login-related operations""" + + @http.route('/web/login', type='http', auth="none") + def web_login(self, redirect=None): + """fetching the saved logins and displaying them on the login page""" + ensure_db() + request.params['login_success'] = False + if request.httprequest.method == 'GET' and redirect and request.session.uid: + return request.redirect(redirect) + if not request.uid: + request.update_env(user=odoo.SUPERUSER_ID) + values = {k: v for k, v in request.params.items() if + k in SIGN_UP_REQUEST_PARAMS} + try: + values['databases'] = http.db_list() + except odoo.exceptions.AccessDenied: + values['databases'] = None + if request.httprequest.method == 'POST': + old_uid = request.uid + try: + uid = request.session.authenticate(request.session.db, + request.params['login'], + request.params['password']) + request.params['login_success'] = True + return request.redirect( + self._login_redirect(uid, redirect=redirect)) + except odoo.exceptions.AccessDenied as e: + request.uid = old_uid + if e.args == odoo.exceptions.AccessDenied().args: + values['error'] = _("Wrong login/password") + else: + values['error'] = e.args[0] + else: + if 'error' in request.params and request.params.get( + 'error') == 'access': + values['error'] = _( + 'Only employees can access this database.' + ' Please contact the administrator.') + + if 'login' not in values and request.session.get('auth_login'): + values['login'] = request.session.get('auth_login') + if not odoo.tools.config['list_db']: + values['disable_database_manager'] = True + conf_param = request.env['ir.config_parameter'].sudo() + base_url = conf_param.get_param('web.base.url') + log_data_list = [] + for log_data in request.env['logout.popup'].search([]): + log_data_list.append([log_data.name, base_url + + '/web/image?' + + 'model=res.users&id=' + + str(log_data.user_id.id) + + '&field=image_1920', log_data.user_id.name]) + values['login_data'] = log_data_list + response = request.render('web.login', values) + response.headers['X-Frame-Options'] = 'SAMEORIGIN' + return response diff --git a/login_user_details_save/doc/RELEASE_NOTES.md b/login_user_details_save/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..6051e1fb1 --- /dev/null +++ b/login_user_details_save/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 29.07.2023 +#### Version 16.0.1.0.0 +#### ADD +Initial Commit for Save User's Login info + diff --git a/login_user_details_save/models/__init__.py b/login_user_details_save/models/__init__.py new file mode 100644 index 000000000..62a27645a --- /dev/null +++ b/login_user_details_save/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Swaroop N P (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import logout_popup diff --git a/login_user_details_save/models/logout_popup.py b/login_user_details_save/models/logout_popup.py new file mode 100644 index 000000000..2fdf95416 --- /dev/null +++ b/login_user_details_save/models/logout_popup.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Swaroop N P (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import models, fields + + +class LogoutPopup(models.Model): + """Model for checking if user wants to save his login details""" + _name = "logout.popup" + _description = "Logout Popup" + + name = fields.Char(string="Name", default="name", + help="This is the name field") + save_details = fields.Boolean(default=False, + string="Save Login Details ?", + help="Boolean field to save login details if enabled") + user_id = fields.Many2one('res.users', string='User', + help="ID of the user whose login details must be saved") diff --git a/login_user_details_save/security/ir.model.access.csv b/login_user_details_save/security/ir.model.access.csv new file mode 100644 index 000000000..db017f81a --- /dev/null +++ b/login_user_details_save/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +login_user_details_save.access_logout_popup_user,access_logout_popup,login_user_details_save.model_logout_popup,base.group_user,1,1,1,1 +login_user_details_save.access_logout_popup_portal,access_logout_popup,login_user_details_save.model_logout_popup,base.group_portal,1,1,1,1 +login_user_details_save.access_logout_popup_public,access_logout_popup,login_user_details_save.model_logout_popup,base.group_public,1,1,1,1 \ No newline at end of file diff --git a/login_user_details_save/static/description/assets/icons/check.png b/login_user_details_save/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/check.png differ diff --git a/login_user_details_save/static/description/assets/icons/chevron.png b/login_user_details_save/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/chevron.png differ diff --git a/login_user_details_save/static/description/assets/icons/cogs.png b/login_user_details_save/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/cogs.png differ diff --git a/login_user_details_save/static/description/assets/icons/consultation.png b/login_user_details_save/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/consultation.png differ diff --git a/login_user_details_save/static/description/assets/icons/ecom-black.png b/login_user_details_save/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/ecom-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/education-black.png b/login_user_details_save/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/education-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/hotel-black.png b/login_user_details_save/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/hotel-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/license.png b/login_user_details_save/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/license.png differ diff --git a/login_user_details_save/static/description/assets/icons/lifebuoy.png b/login_user_details_save/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/lifebuoy.png differ diff --git a/login_user_details_save/static/description/assets/icons/manufacturing-black.png b/login_user_details_save/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/manufacturing-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/pos-black.png b/login_user_details_save/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/pos-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/puzzle.png b/login_user_details_save/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/puzzle.png differ diff --git a/login_user_details_save/static/description/assets/icons/restaurant-black.png b/login_user_details_save/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/restaurant-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/service-black.png b/login_user_details_save/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/service-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/trading-black.png b/login_user_details_save/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/trading-black.png differ diff --git a/login_user_details_save/static/description/assets/icons/training.png b/login_user_details_save/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/training.png differ diff --git a/login_user_details_save/static/description/assets/icons/update.png b/login_user_details_save/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/update.png differ diff --git a/login_user_details_save/static/description/assets/icons/user.png b/login_user_details_save/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/user.png differ diff --git a/login_user_details_save/static/description/assets/icons/wrench.png b/login_user_details_save/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/login_user_details_save/static/description/assets/icons/wrench.png differ diff --git a/login_user_details_save/static/description/assets/misc/categories.png b/login_user_details_save/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/categories.png differ diff --git a/login_user_details_save/static/description/assets/misc/check-box.png b/login_user_details_save/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/check-box.png differ diff --git a/login_user_details_save/static/description/assets/misc/compass.png b/login_user_details_save/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/compass.png differ diff --git a/login_user_details_save/static/description/assets/misc/corporate.png b/login_user_details_save/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/corporate.png differ diff --git a/login_user_details_save/static/description/assets/misc/customer-support.png b/login_user_details_save/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/customer-support.png differ diff --git a/login_user_details_save/static/description/assets/misc/cybrosys-logo.png b/login_user_details_save/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/cybrosys-logo.png differ diff --git a/login_user_details_save/static/description/assets/misc/features.png b/login_user_details_save/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/features.png differ diff --git a/login_user_details_save/static/description/assets/misc/logo.png b/login_user_details_save/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/logo.png differ diff --git a/login_user_details_save/static/description/assets/misc/pictures.png b/login_user_details_save/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/pictures.png differ diff --git a/login_user_details_save/static/description/assets/misc/pie-chart.png b/login_user_details_save/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/pie-chart.png differ diff --git a/login_user_details_save/static/description/assets/misc/right-arrow.png b/login_user_details_save/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/right-arrow.png differ diff --git a/login_user_details_save/static/description/assets/misc/star.png b/login_user_details_save/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/star.png differ diff --git a/login_user_details_save/static/description/assets/misc/support.png b/login_user_details_save/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/support.png differ diff --git a/login_user_details_save/static/description/assets/misc/whatsapp.png b/login_user_details_save/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/login_user_details_save/static/description/assets/misc/whatsapp.png differ diff --git a/login_user_details_save/static/description/assets/modules/1.png b/login_user_details_save/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/1.png differ diff --git a/login_user_details_save/static/description/assets/modules/2.png b/login_user_details_save/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/2.png differ diff --git a/login_user_details_save/static/description/assets/modules/3.png b/login_user_details_save/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/3.png differ diff --git a/login_user_details_save/static/description/assets/modules/4.png b/login_user_details_save/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/4.png differ diff --git a/login_user_details_save/static/description/assets/modules/5.gif b/login_user_details_save/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/5.gif differ diff --git a/login_user_details_save/static/description/assets/modules/6.png b/login_user_details_save/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/6.png differ diff --git a/login_user_details_save/static/description/assets/modules/gantt_image.png b/login_user_details_save/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/gantt_image.png differ diff --git a/login_user_details_save/static/description/assets/modules/hide_menu_image.png b/login_user_details_save/static/description/assets/modules/hide_menu_image.png new file mode 100644 index 000000000..6bc155887 Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/hide_menu_image.png differ diff --git a/login_user_details_save/static/description/assets/modules/laundry_image.png b/login_user_details_save/static/description/assets/modules/laundry_image.png new file mode 100644 index 000000000..026ca78d3 Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/laundry_image.png differ diff --git a/login_user_details_save/static/description/assets/modules/list_view_image.png b/login_user_details_save/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..cb3435fe7 Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/list_view_image.png differ diff --git a/login_user_details_save/static/description/assets/modules/print_image.png b/login_user_details_save/static/description/assets/modules/print_image.png new file mode 100644 index 000000000..8d5c3ea3f Binary files /dev/null and b/login_user_details_save/static/description/assets/modules/print_image.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/hero.gif b/login_user_details_save/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..d6790b689 Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/hero.gif differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot1.png b/login_user_details_save/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..5bd218be2 Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot1.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot10.png b/login_user_details_save/static/description/assets/screenshots/screenshot10.png new file mode 100644 index 000000000..0b712ea1a Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot10.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot2.png b/login_user_details_save/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..96809b26a Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot2.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot3.png b/login_user_details_save/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..1cbc29c2b Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot3.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot4.png b/login_user_details_save/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..1d7266f9f Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot4.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot5.png b/login_user_details_save/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..8b3637d50 Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot5.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot6.png b/login_user_details_save/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..1b4241001 Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot6.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot7.png b/login_user_details_save/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..40e5ab7ec Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot7.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot8.png b/login_user_details_save/static/description/assets/screenshots/screenshot8.png new file mode 100644 index 000000000..2066783c1 Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot8.png differ diff --git a/login_user_details_save/static/description/assets/screenshots/screenshot9.png b/login_user_details_save/static/description/assets/screenshots/screenshot9.png new file mode 100644 index 000000000..d20a1f3d4 Binary files /dev/null and b/login_user_details_save/static/description/assets/screenshots/screenshot9.png differ diff --git a/login_user_details_save/static/description/banner.png b/login_user_details_save/static/description/banner.png new file mode 100644 index 000000000..e65e2b558 Binary files /dev/null and b/login_user_details_save/static/description/banner.png differ diff --git a/login_user_details_save/static/description/icon.png b/login_user_details_save/static/description/icon.png new file mode 100644 index 000000000..0e02f1e56 Binary files /dev/null and b/login_user_details_save/static/description/icon.png differ diff --git a/login_user_details_save/static/description/index.html b/login_user_details_save/static/description/index.html new file mode 100644 index 000000000..e2d78568c --- /dev/null +++ b/login_user_details_save/static/description/index.html @@ -0,0 +1,559 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

Save User's Login Info

+

This app allows us to save our login info , our name will be + displayed in login page, and we can click on it, and it automatically + fills our username.

+ + + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
This app allows us to save our login info , our name will be + displayed in login page, we can click on it, and it automatically + fills our username
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ +
+ Prevents accidental logout + In this app the logout button doesn't log you out instantly, instead it asks for logout confirmation +
+
+ +
+ +
+ We can save our login details + With the help of this app we can save our login details and when we try to login next time we can see our name and once we click on that our login username will be automatically filled. +
+
+ +
+
+
+ +
+ We can remove this saved login details + If we want to remove our saved details, next time when we log out, we can uncheck the save details checkbox.This will remove our saved details +
+
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Prevents accidental logout

+

In this app the logout button doesn't log you out instantly, instead it asks for logout confirmation

+ +
+
+

+

+ +
+ +
+

We can save our login details

+

With the help of this app we can save our login details using the prompt that appears when we click logout, we can enable the 'save login details' checkbox to save our details and we can click save & logout to logout

+ +
+
+

+

+ +
+ +
+

We can also delete our saved login details

+

We can delete our saved login details by unchecking the 'save login details' checkbox.

+ +
+
+

+

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

Related Modules

+

Explore our related modules

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

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_user_details_save/static/src/js/logout_replace.js b/login_user_details_save/static/src/js/logout_replace.js new file mode 100644 index 000000000..398695769 --- /dev/null +++ b/login_user_details_save/static/src/js/logout_replace.js @@ -0,0 +1,36 @@ +/** @odoo-module **/ +// Import necessary modules and functions +import {registry} from "@web/core/registry"; +import {browser} from "@web/core/browser/browser"; + +// Get the user menu item registry + + +const serviceRegistry = registry.category("services"); +const userMenuRegistry = registry.category("user_menuitems"); + +const removeLogoutService = { + start() { + // Remove the existing log out menu item + userMenuRegistry.remove('log_out'); + }, +}; +serviceRegistry.add("remove_log_out", removeLogoutService); + +function logOutItemNew(env) { + const route = "/web/session/logout_popup"; + return { + type: "item", + id: "logout_new", + class: "btn btn-link", + description: env._t("Log out"), + href: `${browser.location.origin}${route}`, + callback: () => { + browser.location.href = route; + }, + sequence: 70, + }; +} + +// Add the new log out menu item +registry.category("user_menuitems").add("logout", logOutItemNew) diff --git a/login_user_details_save/views/logout_popup_view.xml b/login_user_details_save/views/logout_popup_view.xml new file mode 100644 index 000000000..bbc409a2c --- /dev/null +++ b/login_user_details_save/views/logout_popup_view.xml @@ -0,0 +1,37 @@ + + + + + + logout.popup.form + logout.popup + + + +
+ + + + +
+
+
+ + + + Confirm Logout + ir.actions.act_window + logout.popup + new + form + + + + + + form + + + +
+
\ No newline at end of file diff --git a/login_user_details_save/views/templates.xml b/login_user_details_save/views/templates.xml new file mode 100644 index 000000000..8c01eea50 --- /dev/null +++ b/login_user_details_save/views/templates.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + \ No newline at end of file