Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2742 Lượt xem

Hi Guys,

Consider the following example

User 1 belongs to Group A.

User 2 belongs to Group B. 
UI Level

I have created one field in UI Level with Group A. That field is visible to Group B too.


Code Level

I have created one field in Code Level with Group A. That field is not visible to Group B.

Sample Code

city = fields.Char("City", groups='custom_module.group_name')


Can anyone help me to fix this issue?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

add the group in xml 

<field name="your_field_name" groups='custom_module.group_name'/>

you can do this in search and pivot view

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Ibrahim,

It'll hide the fields from the view but in the search and pivot view it's showing up.

Thanks

Tác giả

Yeah, True. We can set it to view too. But I need to apply for a specific field.

In the above example, x_start_loc assigned for the Contact creation group only but it still visible to all the users. Here that is my issue.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 23
1112
3
thg 10 23
8814
1
thg 9 23
3329
1
thg 5 23
2271
2
thg 4 23
2827