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

When i create project with Privacy / Visibility Private Project Followers only the Task in this Project are visible only for user that are followers or assigned to the task.

How can i do that if there is no followers and Task is not assigned to anyone that every user may see that task.

Is this made trough  Access Rights/Rules ? 

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

Hello,

you should modify the access rule "Project/Task: employees: follow required for follower-only projects". 

Something like:

<record model="ir.rule" id="project.task_visibility_rule">

        <field name="name">Project/Task: employees: follow required for follower-only projects</field>
        <field name="model_id" ref="project.model_project_task"/>
        <field name="domain_force">[
        '|',
            ('project_id.privacy_visibility', '!=', 'followers'),
            '|','|',
                ('project_id.message_partner_ids', 'in', [user.partner_id.id]),
                '&amp;', <!-- And operator -->
                   ('user_id', '=', False), <!-- no user-->
                   (len('project_id.message_partner_ids'), '=', 0), <!-- NO FOLLOWERS-->
  '|',
                    ('message_partner_ids', 'in', [user.partner_id.id]),
                    ('user_id', '=', user.id)
 
        ]</field>
        <field name="groups" eval="[(4,ref('base.group_user'))]"/>
    </record>
Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you, once again ;)

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

If you want that everyone see the project use public project instead of private.

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

The thing is by the Assignet To i have clear button and if user pushes that button it clears Assigned person from task, so after that i want that that task without assignment would be visible to everyone

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 16
4459
0
thg 4 24
1449
0
thg 1 23
1828
3
thg 9 21
2931
1
thg 10 20
9258