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

In Odoo 11 CE, I have added the following custom field to project.task.

facilitators = fields.Many2many('res.users')

I now want to create a record rule that allows users that have been added to a task as a facilitator to edit project tasks even if they have not been assigned the task.  There could be one or multiple users added as facilitators on any given task.

What is the correct way to express this domain filter?

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

Hello Bills,

I am adding my assumption here, You have to create a new security group for facilitators, then you can create record rule for this group. and you can try below domain.

[('facilitators','in',[user.id])]

Hope it will help.

Thanks.




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

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

Thanks for answering. I will try that. Can you tell me what the function of the square brackets around user.id is? This part -> [user.id]. Is it because we are using 'in' rather than '='?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 24
3759
0
thg 1 21
3778
1
thg 7 24
6196
1
thg 7 21
4654
0
thg 6 18
4045