Web Access Rules Buttons
by Camptocamp https://github.com/OCA/web , Onestein https://github.com/OCA/web , Odoo Community Association (OCA) https://github.com/OCA/webAvailability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
web_access_rule_buttons |
License | AGPL-3 |
Website | http://www.camptocamp.com |
Versions | 9.0 10.0 11.0 14.0 |
Web Access Rules Buttons
This addon disables the Edit button on the form views if the user cannot edit the current record according to the record access rules.
Usage
When using Odoo, even if a user has no rights to edit a record, the Edit button is shown. The user can edit the record but won't be able to save his changes. Now, the user won't be able to click on the Edit button.
Known issues / Roadmap
- Additional requests will be issued when a record is loaded in a form view in order to check if the user has the access right.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
Images
- Odoo Community Association: Icon.
Contributors
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
Maintainer

This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Error with the module crm
i have a problem to use the module crm and the permissions when i try create a sale order and add items on order lines, i got the message error : Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 640, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 677, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 935, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 506, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 890, in call_kw return self._call_kw(model, method, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 882, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 689, in call_kw return call_kw_multi(method, model, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 680, in call_kw_multi result = method(recs, *args, **kwargs) File "/oca/addons/web_access_rule_buttons/models.py", line 29, in check_access_rule_all self.check_access_rule(operation) File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 3313, in check_access_rule self._cr.execute(query, [sub_ids] + where_params) File "/usr/lib/python2.7/dist-packages/odoo/sql_db.py", line 154, in wrapper return f(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/sql_db.py", line 231, in execute res = self._obj.execute(query, params) DataError: invalid input syntax for integer: "one2many_v_id_184" LINE 1: ...OM "sale_order_line" WHERE sale_order_line.id IN ('one2many_...