Odoo12 record rules for Display only own contact to sales person.
I have setup the odoo CRM for my organization. but when any of my sales person add new contact it is visible to other sales person as well. what should i do to restrict sales person to see his own contacts only. But admin should see all sales person contact.
I have applied below rules but it can restrict admin as well to see his own contact. instead to see all contacts.
['|',('create_uid','=',user.id),'|',('id','=',1),('id', '=', user.partner_id.id)]
Can any one help me out to resolve this?