I have 2 company (Multi Company) set in my Odoo database, Second company was set up after few months of first company.
Now while making invoice in second company I was getting "Access Error" (Full screen shot attached) to fix this I have added user group in res.partner Company in Contact Model, by doing this I solved Access Error I am no longer getting error but It created another issues my Contacts from first Company visible in my Second Company. My Contacts already have Company assign. Now I Don't to share my contacts in both company and Avoid this error as well.
any help would be much appreciated.
Access Error
Due to security restrictions, you are not allowed to access 'Contact' (res.partner) records. Records: ElSHROUK (id=7) User: Rabab (id=7) This restriction is due to the following rules: - res.partner company Note: this might be a multi-company issue. Contact your administrator to request access if necessary.