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

Hi, I would like to know if it is possible or if somebody has any idea how to limit the visibility of attachments to certain groups.

My example case would be that only Purchase managers should be able to see the attachments on purchase orders.

I have been playing around with settings concerning ir_attachment without success. So I'd be most grateful if anyone had an idea how to achieve this.

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

Hi,

Activate the developer mode, then go to Settings -> Technical -> Database Structures -> Model, then search and open the model ir.attachment , then you can change the user access from the access right tab, you can add the required group in that tab, here in this case you can add purchase/manager, so that it will be visible only for users in this group.

Thanks

Аватар
Отменить
Автор

Hi Niyas, thanks for your reply. I tried but it turns out that I can limit access to uploading files, but they are still readable, so anybody can open them. I also experienced that these rules are applied globally across all modules, so restricting a user to upload in purchase will also forbid him to upload on a sale order and create pdf reports there. There is also the access right 'ir_attachment all' which gives reading rights to an undefined group. If I disable that, the site won't even load and remain white for the regular user not having ir.attachment access. I wonder if that causes the always read issue.

Related Posts Ответы Просмотры Активность
5
мая 23
15166
2
дек. 23
5129
1
мая 22
2371
0
апр. 22
1848
2
янв. 21
6136