Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3713 Представления

SOLVED UPDATE: You need to create a new record rule with a specific domain. The domain can be something like this:

["|", ("user_ids","!=",False), ('user_id','=',user.id) ]

 

I've been watching and reading many tutorials about permissions but I can't figure out how to set a group (A) to see other group's documents, without letting the group (A) to see ALL the documents? I need the group A to ONLY see another group of users' documents, not all. Thank you!

Аватар
Отменить
Лучший ответ

Hi,

Give the  permission as  "All  Documents"  in  Settings->Users  for  the  Sales Module on the users belongs to Group A

Аватар
Отменить
Лучший ответ

The standard Odoo roles for sales only give two options 'My documents' and 'All documents'. You will need to setup an additional group that you assign users to, and this group will need to have data access rules defined to limit the sales teams documents they can access. Define data access rules is not so easy unless you are a python developer, but it's all about setting a data rule that filters for the sales teams you want to include. You will note, the 'My documents' group has a data rule that limits the access to your user_id, so it's a matter of finding the equivalent filters to meet your needs, i.e. for the teams you want.

Аватар
Отменить
Автор Лучший ответ

Hello Alex! I can't comment your answer because I'm a new user, but it was exactly what I was looking for. I'm a Python developer, do you think you can help me find the .py file where I can modify this id?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 15
5979
3
сент. 25
197
3
авг. 25
276
4
авг. 25
1474
Block sale. Решено
3
авг. 25
497