diff --git a/auto_logout_idle_user_odoo/README.rst b/auto_logout_idle_user_odoo/README.rst new file mode 100755 index 000000000..41d0251ec --- /dev/null +++ b/auto_logout_idle_user_odoo/README.rst @@ -0,0 +1,50 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Logout Idle User +================ +user can see their personal information and can download + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer : (V14) Yadhukrishnan, odoo@cybrosys.com + + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +License +------- +Affero General Public License, Version 3 `(AGPL v3). +`__ + +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/auto_logout_idle_user_odoo/__init__.py b/auto_logout_idle_user_odoo/__init__.py new file mode 100755 index 000000000..1e015eaa4 --- /dev/null +++ b/auto_logout_idle_user_odoo/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 controllers +from . import models diff --git a/auto_logout_idle_user_odoo/__manifest__.py b/auto_logout_idle_user_odoo/__manifest__.py new file mode 100755 index 000000000..997c1d0e4 --- /dev/null +++ b/auto_logout_idle_user_odoo/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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': 'Logout Idle User', + 'version': '14.0.1.0.0', + 'summary': 'Auto logout idle user with fixed time', + 'description': """User can fix the timer in the user's profile, if the user + is in idle mode the user will logout from session + automatically""", + 'category': 'Extra Tools', + 'author': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'license': 'AGPL-3', + 'depends': ['base'], + 'images': ['static/description/banner.png'], + 'data': [ + 'views/res_users_views.xml', + 'views/assets.xml' + ], + 'qweb': ['static/src/xml/systray.xml'], + 'installable': True, + 'application': False, + 'auto_install': False +} diff --git a/auto_logout_idle_user_odoo/controllers/__init__.py b/auto_logout_idle_user_odoo/controllers/__init__.py new file mode 100755 index 000000000..7a9ee874c --- /dev/null +++ b/auto_logout_idle_user_odoo/controllers/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 auto_logout_idle_user_odoo diff --git a/auto_logout_idle_user_odoo/controllers/auto_logout_idle_user_odoo.py b/auto_logout_idle_user_odoo/controllers/auto_logout_idle_user_odoo.py new file mode 100755 index 000000000..65a15cd3e --- /dev/null +++ b/auto_logout_idle_user_odoo/controllers/auto_logout_idle_user_odoo.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 import http +from odoo.http import request + + +class AutoLogoutIdleUSer(http.Controller): + """ + The EasyLanguageSelector passing minute that selected in the login user + account. + + Methods: + get_idle_time(self): + when the page is loaded adding total activated languages options + to the selection field. + return a list variable. + + """ + + @http.route('/get_idle_time/timer', auth='public', type='json') + def get_idle_time(self): + """ + + Summary: + Getting value that selected from the login user account and pass it + to the js function. + return: + type:It is a variable, that contain selected minutes. + + """ + if request.env.user.enable_idle: + return request.env.user.idle_time diff --git a/auto_logout_idle_user_odoo/doc/RELEASE_NOTES.md b/auto_logout_idle_user_odoo/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..d346c5b4f --- /dev/null +++ b/auto_logout_idle_user_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 02.09.2023 +#### Version 14.0.1.0.0 +##### ADD +- Initial Commit for Logout Idle User diff --git a/auto_logout_idle_user_odoo/models/__init__.py b/auto_logout_idle_user_odoo/models/__init__.py new file mode 100755 index 000000000..af6528027 --- /dev/null +++ b/auto_logout_idle_user_odoo/models/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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/auto_logout_idle_user_odoo/models/res_users.py b/auto_logout_idle_user_odoo/models/res_users.py new file mode 100755 index 000000000..dc163a518 --- /dev/null +++ b/auto_logout_idle_user_odoo/models/res_users.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Yadhukrishnan K (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 import models, fields + + +class ResUsers(models.Model): + """In the class Users is used to adding fields in 'res.users' for getting + idle time of user""" + _inherit = "res.users" + + enable_idle = fields.Boolean(string="Enable Idle Time", + help="Enable Idle Timer") + idle_time = fields.Integer(string="Idle Time (In minutes)", default=10, + help="Set Idle Time For theis User") + + _sql_constraints = [ + ('positive_idle_time', 'CHECK(idle_time >= 1)', + 'Idle Time should be a positive number.'), + ] diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/check.png b/auto_logout_idle_user_odoo/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/check.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/chevron.png b/auto_logout_idle_user_odoo/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/chevron.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/cogs.png b/auto_logout_idle_user_odoo/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/cogs.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/consultation.png b/auto_logout_idle_user_odoo/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/consultation.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/ecom-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/education-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/education-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/hotel-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/license.png b/auto_logout_idle_user_odoo/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/license.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/lifebuoy.png b/auto_logout_idle_user_odoo/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/manufacturing-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/pos-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/pos-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/puzzle.png b/auto_logout_idle_user_odoo/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/puzzle.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/restaurant-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/service-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/service-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/trading-black.png b/auto_logout_idle_user_odoo/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/trading-black.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/training.png b/auto_logout_idle_user_odoo/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/training.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/update.png b/auto_logout_idle_user_odoo/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/update.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/user.png b/auto_logout_idle_user_odoo/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/user.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/icons/wrench.png b/auto_logout_idle_user_odoo/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/icons/wrench.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/categories.png b/auto_logout_idle_user_odoo/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/categories.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/check-box.png b/auto_logout_idle_user_odoo/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/check-box.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/compass.png b/auto_logout_idle_user_odoo/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/compass.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/corporate.png b/auto_logout_idle_user_odoo/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/corporate.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/customer-support.png b/auto_logout_idle_user_odoo/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/customer-support.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/cybrosys-logo.png b/auto_logout_idle_user_odoo/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/cybrosys-logo.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/features.png b/auto_logout_idle_user_odoo/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/features.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/logo.png b/auto_logout_idle_user_odoo/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/logo.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/pictures.png b/auto_logout_idle_user_odoo/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/pictures.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/pie-chart.png b/auto_logout_idle_user_odoo/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/pie-chart.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/right-arrow.png b/auto_logout_idle_user_odoo/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/right-arrow.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/star.png b/auto_logout_idle_user_odoo/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/star.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/support.png b/auto_logout_idle_user_odoo/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/support.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/misc/whatsapp.png b/auto_logout_idle_user_odoo/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/misc/whatsapp.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/modules/l1.png b/auto_logout_idle_user_odoo/static/description/assets/modules/l1.png new file mode 100755 index 000000000..84fe94e80 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/modules/l1.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/modules/l2.png b/auto_logout_idle_user_odoo/static/description/assets/modules/l2.png new file mode 100755 index 000000000..74ce220e6 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/modules/l2.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/modules/l3.png b/auto_logout_idle_user_odoo/static/description/assets/modules/l3.png new file mode 100755 index 000000000..c6d92c16d Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/modules/l3.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/modules/l4.png b/auto_logout_idle_user_odoo/static/description/assets/modules/l4.png new file mode 100755 index 000000000..c5932894b Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/modules/l4.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/modules/l5.png b/auto_logout_idle_user_odoo/static/description/assets/modules/l5.png new file mode 100755 index 000000000..e0964f1e3 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/modules/l5.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot.png b/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot.png new file mode 100755 index 000000000..8264cabdf Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot2.png b/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot2.png new file mode 100755 index 000000000..01929f453 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot2.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot3.png b/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot3.png new file mode 100755 index 000000000..f66a6d909 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/screenshots/Screenshot3.png differ diff --git a/auto_logout_idle_user_odoo/static/description/assets/screenshots/hero.gif b/auto_logout_idle_user_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..8605b5e03 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/assets/screenshots/hero.gif differ diff --git a/auto_logout_idle_user_odoo/static/description/banner.png b/auto_logout_idle_user_odoo/static/description/banner.png new file mode 100755 index 000000000..2771b75d3 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/banner.png differ diff --git a/auto_logout_idle_user_odoo/static/description/icon.png b/auto_logout_idle_user_odoo/static/description/icon.png new file mode 100755 index 000000000..ca7fb560e Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/icon.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/checked.png b/auto_logout_idle_user_odoo/static/description/images/checked.png new file mode 100755 index 000000000..c8e371fae Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/checked.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/hero.png b/auto_logout_idle_user_odoo/static/description/images/hero.png new file mode 100755 index 000000000..4ad813b12 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/hero.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/link.png b/auto_logout_idle_user_odoo/static/description/images/link.png new file mode 100755 index 000000000..7e85ab08b Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/link.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/list.png b/auto_logout_idle_user_odoo/static/description/images/list.png new file mode 100755 index 000000000..a5bc5bc64 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/list.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/logo.png b/auto_logout_idle_user_odoo/static/description/images/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/logo.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/modules/approval_image.png b/auto_logout_idle_user_odoo/static/description/images/modules/approval_image.png new file mode 100755 index 000000000..84fe94e80 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/modules/approval_image.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/modules/dynamic_image.png b/auto_logout_idle_user_odoo/static/description/images/modules/dynamic_image.png new file mode 100755 index 000000000..74ce220e6 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/modules/dynamic_image.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/modules/mulitple-ref_image.png b/auto_logout_idle_user_odoo/static/description/images/modules/mulitple-ref_image.png new file mode 100755 index 000000000..e0964f1e3 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/modules/mulitple-ref_image.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/modules/pos_image.png b/auto_logout_idle_user_odoo/static/description/images/modules/pos_image.png new file mode 100755 index 000000000..c5932894b Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/modules/pos_image.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/modules/shopify_image.png b/auto_logout_idle_user_odoo/static/description/images/modules/shopify_image.png new file mode 100755 index 000000000..c6d92c16d Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/modules/shopify_image.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/my leave analysis.png b/auto_logout_idle_user_odoo/static/description/images/my leave analysis.png new file mode 100755 index 000000000..d197936e0 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/my leave analysis.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/partner.png b/auto_logout_idle_user_odoo/static/description/images/partner.png new file mode 100755 index 000000000..33b2bdfd1 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/partner.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/printer.png b/auto_logout_idle_user_odoo/static/description/images/printer.png new file mode 100755 index 000000000..30cd46210 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/printer.png differ diff --git a/auto_logout_idle_user_odoo/static/description/images/return.png b/auto_logout_idle_user_odoo/static/description/images/return.png new file mode 100755 index 000000000..653707227 Binary files /dev/null and b/auto_logout_idle_user_odoo/static/description/images/return.png differ diff --git a/auto_logout_idle_user_odoo/static/description/index.html b/auto_logout_idle_user_odoo/static/description/index.html new file mode 100755 index 000000000..140ad4b2c --- /dev/null +++ b/auto_logout_idle_user_odoo/static/description/index.html @@ -0,0 +1,543 @@ +
+ +
+ +
+
+ Community +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Logout Idle User +

+

Logout the User in Idle Mode.

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ When the user in idle mode, this module redirect to the login page after a fixed time. +
+ +
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + A protection to your odoo session. +
+
+
+
+ + User can set their idle time in their profile. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Idle Timer

+

User need to enable the option idle timer under Settings -> Users & Companies -> Users -> Preferences after that set time for idle.

+ +
+ +
+

Timer On Systray +

+

After completion of above step a timer will be displayed in the systray +

+ +
+ +
+

Logout User +

+

After completion of timer the user will be logout automatically. +

+ +
+
+
+ + + +
+
+

Suggested 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/auto_logout_idle_user_odoo/static/src/js/systray.js b/auto_logout_idle_user_odoo/static/src/js/systray.js new file mode 100755 index 000000000..a41a1ac6b --- /dev/null +++ b/auto_logout_idle_user_odoo/static/src/js/systray.js @@ -0,0 +1,122 @@ +odoo.define('auto_logout_idle_user_odoo.systray', function(require) { + "use strict"; + var SystrayMenu = require('web.SystrayMenu'); + var Widget = require('web.Widget'); + var ajax = require('web.ajax'); + var TimerWidget = Widget.extend({ + template: 'TimerSystray', + willStart: function() { + var self = this; + return this._super().then(function() { + self.get_idle_time(); + }); + }, + /** + Getting minutes through python for the corresponding user + */ + get_idle_time: function() { + var self = this + var now = new Date().getTime(); + ajax.rpc('/get_idle_time/timer').then(function(data) { + if (data) { + self.minutes = data + self.idle_timer() + } + }) + }, + /** + Passing values of the countdown to the xml + */ + idle_timer: function() { + var self = this; + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + var updatedTimestamp = date.getTime(); + /** Running the count down using setInterval function */ + var idle = setInterval(function() { + var now = new Date().getTime(); + var distance = updatedTimestamp - now; + var days = Math.floor(distance / (1000 * 60 * 60 * 24)); + var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); + var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); + var seconds = Math.floor((distance % (1000 * 60)) / 1000); + if (hours && days) { + self.el.querySelector("#idle_timer").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s "; + } else if (hours) { + self.el.querySelector("#idle_timer").innerHTML = hours + "h " + minutes + "m " + seconds + "s "; + } else { + self.el.querySelector("#idle_timer").innerHTML = minutes + "m " + seconds + "s "; + if(minutes == 1 && seconds == 0){ + self.displayNotification({ + message: ("You will be logged out in 1 minute."), + sticky: true, + }) + } + } + /** If the countdown is zero the link is redirect to the login page*/ + if (distance < 0) { + clearInterval(idle); + self.el.querySelector("#idle_timer").innerHTML = "EXPIRED"; + location.replace("/web/session/logout") + } + }, 1000); + /** + Checking if the onmousemove event is occur + */ + document.onmousemove = () => { + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + updatedTimestamp = date.getTime(); + + }; + /** + Checking if the onkeypress event is occur + */ + document.onkeypress = () => { + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + updatedTimestamp = date.getTime(); + }; + /** + Checking if the onclick event is occur + */ + document.onclick = () => { + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + updatedTimestamp = date.getTime(); + }; + /** + Checking if the ontouchstart event is occur + */ + document.ontouchstart = () => { + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + updatedTimestamp = date.getTime(); + } + /** + Checking if the onmousedown event is occur + */ + document.onmousedown = () => { + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + updatedTimestamp = date.getTime(); + } + /** + Checking if the onload event is occur + */ + document.onload = () => { + var nowt = new Date().getTime(); + var date = new Date(nowt); + date.setMinutes(date.getMinutes() + self.minutes); + updatedTimestamp = date.getTime(); + } + }, + }); + SystrayMenu.Items.push(TimerWidget); +}) \ No newline at end of file diff --git a/auto_logout_idle_user_odoo/static/src/xml/systray.xml b/auto_logout_idle_user_odoo/static/src/xml/systray.xml new file mode 100755 index 000000000..4872bd457 --- /dev/null +++ b/auto_logout_idle_user_odoo/static/src/xml/systray.xml @@ -0,0 +1,10 @@ + + + + +
  • + +

    +

  • +
    +
    \ No newline at end of file diff --git a/auto_logout_idle_user_odoo/views/assets.xml b/auto_logout_idle_user_odoo/views/assets.xml new file mode 100755 index 000000000..15c3ee8b0 --- /dev/null +++ b/auto_logout_idle_user_odoo/views/assets.xml @@ -0,0 +1,8 @@ + + +