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

Hello,

We are setting up the Projects module, but we are unable to show the projects boxes to the users that "follow" this project. They do see the tasks related to them, but not the projects, it just empty, only Admin and Managers of the Project can see this boxes.

Here an image of what we want and what followers get:

image description


We believe that this should be something with the Record rules, but we configure the following rule with no luck, any ideas?

Under Security - Record Rules:

Object: Project

Rule Definition: [('privacy_visibility', '=', 'followers')]

Thanks!!

Santiago

Ảnh đại diện
Huỷ bỏ

I have same problem with crm.lead object and I tried ('message_follower_ids','in',user.id) or ('message_follower_ids','=',user.id) without any success but you can use something like that.

Câu trả lời hay nhất

This one worked for me:

('message_follower_ids','in', [user.partner_id.id]).

Using the square parenthesis with 'in' operator

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

Like I said in my comment I have the same problem on another object and I use this record rule domain : ('message_follower_ids','=',user.partner_id.id)

You can use this rule on any model (in theory).

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 15
4203
3
thg 1 19
9293
1
thg 8 17
5598
0
thg 6 20
3373
2
thg 11 24
6181