I want to create a group to Accounting with the purpose of make the users that are in that group, let them see only their OWN invoices, created by them, and restrict the rest of the existing invoices that are NOT created by themselves.
I want to apply this to INVOICES and BILLS
How can I do this? I've tried by creating and adding a group to Accounting and adding some Record Rules like [('user_id','=',user.id)] but it only works for invoices, not for bills.
UPDATE:
The invoices are working, I can only see the invoices that the user creates, but the main problem is that I can see everyone's bills.
This is my group configuration (these are the links of the screenshots) :
https://postimg.cc/nCnYKQ9K
https://postimg.cc/v4BrkFzc
https://postimg.cc/GHzPXhvW
https://postimg.cc/62sC87Nv
https://postimg.cc/xkNKjvBQ
https://postimg.cc/34gmmKKb
https://postimg.cc/K1HPyqqQ
And this is what the user sees:
https://postimg.cc/1fNB3ZF2
https://postimg.cc/gr74p0x3
https://postimg.cc/tZSkYq2Q
Thanks in advance.