Is this possible to do this by record rule?
Example:
user A have saleteam with member B,C,D. A is the leader of this team.
so if we login to A, and go to account.move, we can see records of A,B,C,D.
if we login to b, we only see B records.
Thanks you.
Note: Other solution are good too, no need to be record rule.
Thanks to Jainesh Shah(Aktiv Software)
I've found the answer, which is use the search_read() function:
Thanks you all for helping, especially Jainesh Shah(Aktiv Software).