Skip to Content
Menu
This question has been flagged
1 Reply
1449 Views

I want to invisible the one2many fields for stock manager and make visible  to stock user and administrator.


Avatar
Discard


Thanks It works.But, Administrator is also a stock manager so the field is not visible . Is there any possible way to make visible to main administrator.

Sometime we need to visible invisible some filed on the basis of login user group or we want to perform some action on the basis of login user.

Reference: https://goo.gl/Ts3qqK

Hope this will helps you.

Best Answer

Hi,

If you are looking to hide a field for the group Manager and visible the same for the group user, then add the group attribute for the field like this,


<field name="field_name" groups="!stock.group_stock_manager, stock.group_stock_user"/>


Thanks

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 24
25068
2
May 24
5513
3
Mar 24
4962
0
Mar 24
261
3
Feb 24
11416