How to bypass record rules for specific model?
Namaste, I have an intercompany scenario in my module(odoo v8).
I have added intercompany account field in account.account.
So, A user from X company has intercompany account of Y company.
Although, A user has only allowed X company.
So what happens is when I log in from A user I will get access right error in account.account model.
We cannot remove the record rule of res.company.
Please tell me how can I bypass the record rule for a specific model, if possible give me an example to do so.