Skip to Content
Menu
This question has been flagged

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. 

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 19
1647
0
Nov 18
2262
2
Nov 23
5923
2
May 23
5644
2
Mar 22
7902