Skip to Content
Menu
This question has been flagged
1 Reply
5153 Views

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.

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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 Replies Views Activity
5
May 23
13455
2
Dec 23
3115
1
May 22
991
0
Apr 22
696
2
Jan 21
4562