Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 149 |
Technical Name |
access_restriction_by_ip |
License | AGPL-3 |
Website | https://www.cybrosys.com |
Versions | 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 |

Access Restriction By IP
User can Access His Account only from Specified IP.

Key Highlights
Restrict User with IP.
Restrict Users to log in from different IP Address.
Multiple IP Address can be assigned.

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

On accessing account from a non specified IP.
-
Administrator can set an IP or a group of IP Addresses for each User.
-
Users can access their Account only from the specified IP.
-
Accessing System from a non-specified IP will restrict the User Login.
Initial Commit for Access Restriction By IP.
Related Products
Our Services

Odoo Customization

Odoo Implementation

Odoo Support

Hire Odoo Developer

Odoo Integration

Odoo Migration

Odoo Consultancy

Odoo Implementation

Odoo Licensing Consultancy
Our Industries

Trading
Easily procure and sell your products

POS
Easy configuration and convivial experience

Education
A platform for educational management

Manufacturing
Plan, track and schedule your operations

E-commerce & Website
Mobile friendly, awe-inspiring product pages

Service Management
Keep track of services and invoice

Restaurant
Run your bar or restaurant methodically

Hotel Management
An all-inclusive hotel management application
Support
Got questions or need help? Get in touch.
Say hi to us on WhatsApp!
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedNot working with Odoo Mobile App!!!
I have implemented this module on my odoo instance (version 17) and that is working fine with web browsers on both laptop/computer and mobile. But when user tries to login from Odoo mobile app then IP restriction is not checked and user can bypass any restriction. I am looking for a solution myself but it would be great if you can guide me on this.
Re: Not working with Odoo Mobile App!!!
We will check the feasibility of implementing this feature in the mobile app and provide further updates accordingly.
Cant get this to work
I can't use this module, it keeps saying "Not allowed to login from this IP" I have added all the IP's and still nothing (LOCAL IP 192., PUBLIC IP, MAC ADDRESS, router address, server address) How does this actually work?
Re: Cant get this to work
The administrator must set the connecting user's public IP in the corresponding user's Allowed IP. A user can share their public IP with the administrator by searching 'What is my IP' on Google and providing the IPv4 address to be added to the Allowed IP list. The public IP changes from network to network, so if the user switches networks, they must update it with the new public IP.
Not work correctly
Hi, i installed this module. But when i defined a allowed ip for an user, i can't logged with this user. The local machine ip is 192.168.100.5, and it's the same in user "allow ip" tab.
There is any config to do ?
Re: Not work correctly
We cannot fetch the machine's public or network IP address directly within the Odoo app due to security and privacy concerns. Instead, user restrictions can only be enforced using the local IP
V18 ?
Hello,
Is there any plan to migrate this module to Odoo V18?
Thank you.
I am using Odoo 17EE and encountering an issue with your app. After installing it, clicking on the Sign In button leads to the following error in the logs:
2025-01-13 06:56:11,144 103 INFO rajuunifiedvoice-unifiedvoice-main-13347241 odoo.addons.base.models.ir_model: Access Denied by ACLs for operation: read, uid: None, model: website
2025-01-13 06:56:11,169 103 ERROR rajuunifiedvoice-unifiedvoice-main-13347241 odoo.http: Exception during request handling.
Traceback (most recent call last):
File "<185>", line 243, in template_185
File "<185>", line 225, in template_185_content
File "<185>", line 18, in template_185_t_call_0
File "/home/odoo/src/odoo/addons/website/models/ir_qweb.py", line 128, in _post_processing_att
if not website.cdn_activated:
File "/home/odoo/src/odoo/odoo/fields.py", line 1182, in __get__
recs._fetch_field(self)
File "/home/odoo/src/odoo/odoo/models.py", line 3815, in _fetch_field
self.fetch(fnames)
File "/home/odoo/src/odoo/odoo/models.py", line 3850, in fetch
query = self.with_context(active_test=False)._search([('id', 'in', self.ids)])
File "/home/odoo/src/odoo/odoo/models.py", line 5426, in _search
model.check_access_rights('read')
File "/home/odoo/src/odoo/odoo/models.py", line 4138, in check_access_rights
return self.env['ir.model.access'].check(self._name, operation, raise_exception)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py", line 2090, in check
raise AccessError(msg) from None
odoo.exceptions.AccessError: You are not allowed to access 'Website' (website) records.
This operation is allowed for the following groups:
- User types/Internal User
- User types/Portal
- User types/Public
- Website/Editor and Designer
Contact your administrator to request access if necessary.
The issue does not occur when the app is uninstalled, and the login process works fine.
Are there specific ACLs or configurations that need to be adjusted for compatibility with Odoo 17EE?
Re:
We attempted to recreate the issue that was reported, but we were unable to reproduce it.
restriction apply only at the next login of the user ?
Can you answer this point ?
As far as we tested when i apply the restriction, the user stays logged. At next login the restriction will be applied but, meantime the retriction will not.
Re: restriction apply only at the next login of the user ?
Yes, that is how the app is working.
IP blocs and iOS/Android apps
can we use IP blocs ? as xxx.xx.xx.x/23 ?
and how can we manage the connections through the applications ?
once set, the restriction apply only at the next login of the user, is there a way to solve this ?
Regards,
Re: IP blocs and iOS/Android apps
Currently, the module doesn’t support IP blocks for restricting users, but we plan to include this feature in future updates.