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

Hi Odoo comubity 😊. 
I already see a post like this (Project/Task Module Permissions) but it don't work anymore in v18.

I only want the user see the tasks or project which assigned to him.
When user go to the all-tasks (/odoo/all-tasks) , user can only see tasks assigned. Not task of the other users. Same with the projects.

How to do it in odoo V18 please help me with this. 

I've been stuck on this case for a week :((.

Best regards,
Khanh

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

Invalid domain: Invalid field project.task.user_id in leaf ('user_id', '=', 2)
got this error when try your way :(((  

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

Hi,


To restrict the users to visible their own project/task, you need to add the record rule for the model.

1- Enable Developer Mode.

2- Go to Settings → Technical → Security → Record Rules and click Create.

3- Configure:

          -Name: e.g. “Task: only see assigned or unassigned”

          -Object: project.task

          -Groups: Project / User

          -Domain: ['|', ('user_id', '=', user.id), ('user_id', '=', False)]

          - Enable Read, Write, Create, Delete as needed.




Hope it helps

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