跳至内容
菜单
此问题已终结
1 回复
3011 查看

Hello guys. I have boolean validation field in a module called billing_notice. I only want some users to modify this field.

Let's say, I have user1 user2 and user3

I only want user1 to have the power to modify this field. How can I do this restriction with python code or xml code? If you can provide some example I would love it.

Thanks!!

形象
丢弃
最佳答案

Hi,

You can create a new user group named Edit Validation field, and later you can add the users who need to edit the field to this group.


Now in the view level, you have to make this field readonly for all users initially, can be done by settings readonly="1" in the main view.


Now in order to edit for the user in this group, create an inherited view, set group for this view and remove readonly attribute from the field.


Similar use case: https://www.youtube.com/watch?v=Fsp6lAPHz08

Thanks

形象
丢弃
相关帖文 回复 查看 活动
1
2月 21
7304
1
1月 16
6773
1
11月 21
11245
4
8月 20
11861
6
1月 19
26048