I have a multicompany installation with 2 companies. Volvo and BMW for example. I would like to make a field invisible when a user is not a member of the Volvo company.
<field name="locatie_beheer_project_nummer" attrs="{'invisible': [('user.company_id.name','!=','Volvo')]}"/>
I get the following error message.
Error: Unknown field user.company_id.name in domain [["user.company_id.name","!=","Volvo"]]
What is the correct way to do this?
Best regards,
Maarten