Skip to Content
Menu
v 9.0 v 10.0 v 11.0 Third Party 624
Download for v 10.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Technical Name web_access_rule_buttons
LicenseAGPL-3
Websitehttp://www.camptocamp.com
Versions 9.0 10.0 11.0 14.0
You bought this module and need support? Click here!

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.

Try me on Runbot

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

Maintainer

Odoo Community Association

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
Error with the module crm
by
Edgar de la Cruz
on 2/7/18, 12:49 PM

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_...