Hi all,
I'm trying to filter views based on the allowed companies for a user in a multicompany setup.
- The python class has a field 'building_owner_id', which is a M2O to res.company 
- I want that a user only sees the records where 'building_owner_id' is in her/his list of allowed companies (so the field 'company_ids' from res.user). 
Any suggestions?
 
                        
Thank you Mohammed! The record rule works as expected.