Hello everybody!!!
I have a field named type_id which is a many2one to a table hr.contract.type. (where its fields are id, name, ...)
I want to make a field named Date_end invisible when the name of the contract is "CDI".
I tried like this : <field name="date_end" attrs="{'invisible':[('type_id.name,'=',"CDI")]}"/>
But it doesnt work.
Can anyone help please.
Thanks a lot in advance.
Best Regards.