Access Based Form View
I think the only way to achieve this is to update the form itself. You would put all the content in div
and hide it if user_id
(or whatever field you want to set the rule to) is someone else.
Effectively, it would look something like this:
<div attrs="{'invisible': [('user_id', '!=', user.id)]}">
# normal form view fields and formatting
</div>
If a field is user_id
not used as the default for a logged in user, it is possible that form fields will be hidden by default when a new record is created. You could work around it with something like this (which allows you to see entries that are not assigned to a user):
<div attrs="{'invisible': [('user_id', 'not in', [user.id, False])]}">
source to share
To do this, you need to make two groups. The first is for the administrator and the second is for the users.
In kanban and tree, you have to grant field admin rights or apply group 1 to the tree and kanban view.
In the form view, you have to provide a second group, so it works great as per your requirement.
source to share