The clients supports the access right on models and they disable the corresponding buttons.
When a model has record rules for the write and delete rights, we rely on the server validation only which is not ideal for the experience. It will be better if the client could display as read-only record for which the user does not have the write right and disable the delete button if he does not have the delete right to any of the selected record.
I think we could send to the client the write and delete rights of each record read using private variable (like the
The simplest way should be to add to the
SELECT query two column that contains a sub-query based on the
ir.rule. If there is no rule, the query is replaced by a fixed value.
Those fields should be explicitly requested on the