diff --git a/access_restriction_by_ip/README.rst b/access_restriction_by_ip/README.rst new file mode 100644 index 000000000..31af98f89 --- /dev/null +++ b/access_restriction_by_ip/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Access Restriction By IP +======================== +This module helps you to restrict user to login from specific ip only. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V18) Bhagyadev KP, odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/access_restriction_by_ip/__init__.py b/access_restriction_by_ip/__init__.py new file mode 100644 index 000000000..a597a092c --- /dev/null +++ b/access_restriction_by_ip/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from . import controllers +from . import models diff --git a/access_restriction_by_ip/__manifest__.py b/access_restriction_by_ip/__manifest__.py new file mode 100644 index 000000000..e48840aed --- /dev/null +++ b/access_restriction_by_ip/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +{ + 'name': 'Access Restriction By IP', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """User can be restricted from logging in from different Ip""", + 'description': """This module enhances security by allowing administrators + to control user access based on IP addresses. Users will only be able + to log in and access their accounts from specified IP addresses, + providing an additional layer of protection against unauthorized access. + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'data': [ + 'security/ir.model.access.csv', + 'views/allowed_ips_view.xml' + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} + diff --git a/access_restriction_by_ip/controllers/__init__.py b/access_restriction_by_ip/controllers/__init__.py new file mode 100644 index 000000000..77356f208 --- /dev/null +++ b/access_restriction_by_ip/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from . import access_restriction_by_ip diff --git a/access_restriction_by_ip/controllers/access_restriction_by_ip.py b/access_restriction_by_ip/controllers/access_restriction_by_ip.py new file mode 100644 index 000000000..c0bb72ad2 --- /dev/null +++ b/access_restriction_by_ip/controllers/access_restriction_by_ip.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +import odoo +from odoo import http +from odoo.addons.web.controllers import home +from odoo.addons.web.controllers.utils import ensure_db, _get_login_redirect_url, is_user_internal +from odoo.http import request, route +from odoo.tools.translate import _ + +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', 'signup_email'} +LOGIN_SUCCESSFUL_PARAMS = set() +CREDENTIAL_PARAMS = ['login', 'password', 'type'] + +class Home(home.Home): + """Custom Home class for handling web login and authentication. + Extends the base Home class. + Methods: + web_login(self, redirect=None, **kw): Handles web login and + authentication.""" + + @route('/web/login', type='http', auth="none", readonly=False) + def web_login(self, redirect=None, **kw): + """Handle web login and authentication. + Args: + redirect (str): URL to redirect after successful login. + **kw: Additional keyword arguments. + Returns: + http.Response: The HTTP response.""" + ensure_db() + request.params['login_success'] = False + if request.httprequest.method == 'GET' and redirect and request.session.uid: + return request.redirect(redirect) + if request.env.uid is None: + if request.session.uid is None: + request.env["ir.http"]._auth_method_public() + else: + request.update_env(user=request.session.uid) + 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 + ip_address = request.httprequest.environ['REMOTE_ADDR'] + if request.params['login']: + user_rec = request.env['res.users'].sudo().search( + [('login', '=', request.params['login'])]) + if user_rec.allowed_ip_ids: + ip_list = [] + for rec in user_rec.allowed_ip_ids: + ip_list.append(rec.ip_address) + if ip_address in ip_list: + try: + credential = {key: value for key, value in + request.params.items() if + key in CREDENTIAL_PARAMS} + credential.setdefault('type', 'password') + auth_info = request.session.authenticate(request.db, credential) + request.params['login_success'] = True + return request.redirect(self._login_redirect(auth_info['uid'], redirect=redirect)) + except odoo.exceptions.AccessDenied as e: + request.update_env = old_uid + if e.args == odoo.exceptions.AccessDenied().args: + values['error'] = _("Wrong login/password") + else: + request.update_env = old_uid + values['error'] = _("Not allowed to login from this IP") + else: + try: + credential = {key: value for key, value in + request.params.items() if + key in CREDENTIAL_PARAMS} + credential.setdefault('type', 'password') + auth_info = request.session.authenticate(request.db, + credential) + request.params['login_success'] = True + return request.redirect( + self._login_redirect(auth_info['uid'], + redirect=redirect)) + except odoo.exceptions.AccessDenied as e: + 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 + response = request.render('web.login', values) + response.headers['X-Frame-Options'] = 'SAMEORIGIN' + response.headers['Content-Security-Policy'] = "frame-ancestors 'self'" + return response diff --git a/access_restriction_by_ip/doc/RELEASE_NOTES.md b/access_restriction_by_ip/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..cc15d901d --- /dev/null +++ b/access_restriction_by_ip/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 04.06.2025 +#### Version 18.0.1.0.0 +##### ADD +- Initial Commit for Access Restriction By IP diff --git a/access_restriction_by_ip/models/__init__.py b/access_restriction_by_ip/models/__init__.py new file mode 100644 index 000000000..1d12a24a5 --- /dev/null +++ b/access_restriction_by_ip/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from . import allowed_ips +from . import res_users diff --git a/access_restriction_by_ip/models/allowed_ips.py b/access_restriction_by_ip/models/allowed_ips.py new file mode 100644 index 000000000..f39c812f7 --- /dev/null +++ b/access_restriction_by_ip/models/allowed_ips.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from odoo import fields, models + + +class AllowedIPs(models.Model): + """Class for the model allowed_ips. Contains fields for record users and + their Allowed IPs.""" + _name = 'allowed.ips' + _description = "Allowed IPs" + + user_ip_id = fields.Many2one('res.users', string='User', + help='User associated with the allowed IP') + ip_address = fields.Char(string='Allowed IP', help='The allowed IP address' + ' for the User.') diff --git a/access_restriction_by_ip/models/res_users.py b/access_restriction_by_ip/models/res_users.py new file mode 100644 index 000000000..8c41f8752 --- /dev/null +++ b/access_restriction_by_ip/models/res_users.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Bhagyadev KP (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from odoo import fields, models + + +class ResUsersInherit(models.Model): + """Inherited res_users for adding new field allowed ip_ids""" + _inherit = 'res.users' + + allowed_ip_ids = fields.One2many('allowed.ips', 'user_ip_id', + string='IP Address', + help="Allowed ip addresses for the user.") diff --git a/access_restriction_by_ip/security/ir.model.access.csv b/access_restriction_by_ip/security/ir.model.access.csv new file mode 100644 index 000000000..c6e6d61c0 --- /dev/null +++ b/access_restriction_by_ip/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_allowed_ips_user,access.allowed.ips.user,access_restriction_by_ip.model_allowed_ips,base.group_user,1,1,1,1 diff --git a/access_restriction_by_ip/static/description/assets/cybro-icon.png b/access_restriction_by_ip/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/cybro-icon.png differ diff --git a/access_restriction_by_ip/static/description/assets/cybro-odoo.png b/access_restriction_by_ip/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/cybro-odoo.png differ diff --git a/access_restriction_by_ip/static/description/assets/h2.png b/access_restriction_by_ip/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/h2.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/arrows-repeat.svg b/access_restriction_by_ip/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-1.png b/access_restriction_by_ip/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/banner-1.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-2.svg b/access_restriction_by_ip/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-bg.png b/access_restriction_by_ip/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/banner-bg.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-bg.svg b/access_restriction_by_ip/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-call.svg b/access_restriction_by_ip/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-mail.svg b/access_restriction_by_ip/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-pattern.svg b/access_restriction_by_ip/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/banner-promo.svg b/access_restriction_by_ip/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/brand-pair.svg b/access_restriction_by_ip/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/check.png b/access_restriction_by_ip/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/check.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/chevron.png b/access_restriction_by_ip/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/chevron.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/close-icon.svg b/access_restriction_by_ip/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/cogs.png b/access_restriction_by_ip/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/cogs.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/collabarate-icon.svg b/access_restriction_by_ip/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/consultation.png b/access_restriction_by_ip/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/consultation.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/cybro-logo.png b/access_restriction_by_ip/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/cybro-logo.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/down.svg b/access_restriction_by_ip/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/access_restriction_by_ip/static/description/assets/icons/ecom-black.png b/access_restriction_by_ip/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/ecom-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/education-black.png b/access_restriction_by_ip/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/education-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/faq.png b/access_restriction_by_ip/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/faq.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/feature-icon.svg b/access_restriction_by_ip/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/feature.png b/access_restriction_by_ip/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/feature.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/gear.svg b/access_restriction_by_ip/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/hero.gif b/access_restriction_by_ip/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/hero.gif differ diff --git a/access_restriction_by_ip/static/description/assets/icons/hire-odoo.svg b/access_restriction_by_ip/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/hotel-black.png b/access_restriction_by_ip/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/hotel-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/license.png b/access_restriction_by_ip/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/license.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/life-ring-icon.svg b/access_restriction_by_ip/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/lifebuoy.png b/access_restriction_by_ip/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/lifebuoy.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/mail.svg b/access_restriction_by_ip/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/manufacturing-black.png b/access_restriction_by_ip/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/manufacturing-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/notes.png b/access_restriction_by_ip/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/notes.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/notification icon.svg b/access_restriction_by_ip/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/odoo-consultancy.svg b/access_restriction_by_ip/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/odoo-licencing.svg b/access_restriction_by_ip/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/odoo-logo.png b/access_restriction_by_ip/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/odoo-logo.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/patter.svg b/access_restriction_by_ip/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/pattern1.png b/access_restriction_by_ip/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/pattern1.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/pos-black.png b/access_restriction_by_ip/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/pos-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/puzzle-piece-icon.svg b/access_restriction_by_ip/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/puzzle.png b/access_restriction_by_ip/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/puzzle.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/replace-icon.svg b/access_restriction_by_ip/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/restaurant-black.png b/access_restriction_by_ip/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/restaurant-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/screenshot-main.png b/access_restriction_by_ip/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/screenshot-main.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/screenshot.png b/access_restriction_by_ip/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/screenshot.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/service-black.png b/access_restriction_by_ip/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/service-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/skype-fill.svg b/access_restriction_by_ip/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/skype.png b/access_restriction_by_ip/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/skype.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/skype.svg b/access_restriction_by_ip/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/star-1.svg b/access_restriction_by_ip/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/star-2.svg b/access_restriction_by_ip/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/support.png b/access_restriction_by_ip/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/support.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/test-1 - Copy.png b/access_restriction_by_ip/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/test-1 - Copy.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/test-1.png b/access_restriction_by_ip/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/test-1.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/test-2.png b/access_restriction_by_ip/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/test-2.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/trading-black.png b/access_restriction_by_ip/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/trading-black.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/training.png b/access_restriction_by_ip/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/training.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/translate.svg b/access_restriction_by_ip/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/update.png b/access_restriction_by_ip/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/update.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/user.png b/access_restriction_by_ip/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/user.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/video.png b/access_restriction_by_ip/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/video.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/whatsapp.png b/access_restriction_by_ip/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/whatsapp.png differ diff --git a/access_restriction_by_ip/static/description/assets/icons/wrench-icon.svg b/access_restriction_by_ip/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/access_restriction_by_ip/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/access_restriction_by_ip/static/description/assets/icons/wrench.png b/access_restriction_by_ip/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/icons/wrench.png differ diff --git a/access_restriction_by_ip/static/description/assets/modules/1.jpg b/access_restriction_by_ip/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..3cb15fe01 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/modules/1.jpg differ diff --git a/access_restriction_by_ip/static/description/assets/modules/2.jpg b/access_restriction_by_ip/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..662cadcc3 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/modules/2.jpg differ diff --git a/access_restriction_by_ip/static/description/assets/modules/3.jpg b/access_restriction_by_ip/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..717a00443 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/modules/3.jpg differ diff --git a/access_restriction_by_ip/static/description/assets/modules/4.png b/access_restriction_by_ip/static/description/assets/modules/4.png new file mode 100644 index 000000000..00ebf54ad Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/modules/4.png differ diff --git a/access_restriction_by_ip/static/description/assets/modules/5.jpg b/access_restriction_by_ip/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..7c67e2eec Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/modules/5.jpg differ diff --git a/access_restriction_by_ip/static/description/assets/modules/6.gif b/access_restriction_by_ip/static/description/assets/modules/6.gif new file mode 100644 index 000000000..a35ece8df Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/modules/6.gif differ diff --git a/access_restriction_by_ip/static/description/assets/screenshots/1.png b/access_restriction_by_ip/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..3b2754780 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/screenshots/1.png differ diff --git a/access_restriction_by_ip/static/description/assets/screenshots/2.png b/access_restriction_by_ip/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..6e786f9a1 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/screenshots/2.png differ diff --git a/access_restriction_by_ip/static/description/assets/screenshots/hero.gif b/access_restriction_by_ip/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..34c737b02 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/screenshots/hero.gif differ diff --git a/access_restriction_by_ip/static/description/assets/y18.jpg b/access_restriction_by_ip/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/access_restriction_by_ip/static/description/assets/y18.jpg differ diff --git a/access_restriction_by_ip/static/description/banner.jpg b/access_restriction_by_ip/static/description/banner.jpg new file mode 100644 index 000000000..b1dd57ea5 Binary files /dev/null and b/access_restriction_by_ip/static/description/banner.jpg differ diff --git a/access_restriction_by_ip/static/description/icon.png b/access_restriction_by_ip/static/description/icon.png new file mode 100644 index 000000000..f902c4466 Binary files /dev/null and b/access_restriction_by_ip/static/description/icon.png differ diff --git a/access_restriction_by_ip/static/description/index.html b/access_restriction_by_ip/static/description/index.html new file mode 100644 index 000000000..6ebf43ed6 --- /dev/null +++ b/access_restriction_by_ip/static/description/index.html @@ -0,0 +1,950 @@ + + + + + + Access Restriction By IP + + + + + + + + + + +
+
+ + + +
+
+
+
+
+
+ +
+ Supports: +
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+ Availability: +
+ On Premise +
+
+ Odoo Online +
+
+ Odoo.sh +
+
+
+
+
+
+
+ +
+
+
+
+

+ User can Access His Account only from Specified IP. +

+

Access Restriction By IP +

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

Key + Highlights

+
+
+
+
+ +
+
+ Restrict User with IP. +
+
+
+
+
+
+ +
+
+ Multiple IP Address can be assigned. +
+
+
+
+
+ +
+
+
+ Access Restriction By IP +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ User will be able to access his account + only from Allowed IP. + +

+
+
+

+ +

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

+ On accessing account from a non specified IP. + +

+
+
+

+

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

Restrict User with IP.

+
+ +
+
+
+
+
+
+ +
+

Multiple IP Address can be assigned.

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

+ To generate a Day Book report for a specific date range, + navigate to the Day Book module in your Odoo system. + Select the desired start and end dates using the date picker, + and click on the "Generate Report" button. + The module will display the report for the selected date range. +

+
+
+ +
+ +
+

+ Yes, this module is specifically designed to work with Odoo 18 Community Edition and not for odoo 18 enterprise edition. +

+
+
+ +
+ +
+

+ Yes, this module allows you to export the Day Book report in both PDF and Excel formats. + After generating the report, simply click on the "Export PDF" or "Export Excel" buttons + to download the report in your preferred format. +

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

+ Latest Release 18.0.1.0.0 +

+ + 5th June 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + + +
+

+ Our Services

+ +
+ +
+
+ + + + + + diff --git a/access_restriction_by_ip/views/allowed_ips_view.xml b/access_restriction_by_ip/views/allowed_ips_view.xml new file mode 100644 index 000000000..9560f08e1 --- /dev/null +++ b/access_restriction_by_ip/views/allowed_ips_view.xml @@ -0,0 +1,21 @@ + + + + + res.users.view.form.inherit.access.restriction.by.ip + res.users + + + + + + + + + + + + + + +