i am trying to add Record Rule using Custom Module to restrict users to:
- Leads can be access by only user who created and
- can be access by his Supervisor ( supervisor field added in res.users )
same Rule to implement for Contacts
have added supervisor field in res.users and inherit and modified users view to select a Supervisor.
please help to write Record Rule.
regards