Skip to content
Snippets Groups Projects
Commit 5d746d0a authored by Raphael Collet's avatar Raphael Collet
Browse files

[IMP] base, *: tighten `ir.model` access rights

Remove unrestricted "read" access.  To make code internally using `ir.model`
work, add a private method `_get` on `ir.model` to retrieve the record
corresponding to a model name, without access rights issue.

Change signature of method `get_authorized_fields` to make it use a model name
instead of a model id.  This removes the necessity of a search on `ir.model`.
parent 1abd543f
No related branches found
No related tags found
No related merge requests found
Showing
with 61 additions and 72 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment