I'm trying to hide everything except the Create option in the form view of hr.employee model for the field address_home_id. I'm trying to this with an xpath expression.
<xpath expr="//field[@name='address_home_id']" position="attributes"> <attribute name="domain_force"> [('id', '=', -1)] </attribute> </xpath>
I'm trying to use a expression that's always false, like I found on stackoverflow. But it isn't working. Is there a better way to do this?
I don't want to do an access rule because I don't want to hide everything that's in res_partner.