コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
12694 ビュー

I want my user should have a privilege to add attachment in customer master form and not to delete that attachment after uploading document. To configure this option i tried in Setting -> Technical -> Security -> Access-Control List and choose ir.attachment user and enable only Read access and untick all other. But not working i can delete attachment. Any other configuration for only add a attachment and not delete the attachment. Or Else any other configuration for achieve these things...

アバター
破棄
最善の回答

Go to

Settings -> Security -> Record rules -> Add rule

image description

アバター
破棄
著作者

Thanks.. I will try..

最善の回答

You need 2 ir_rule according to this answer by Olivier Dony for version 7 and 8: https://bugs.launchpad.net/openobject-addons/+bug/969198

For employee:

['|',('res_model','!=','hr.employee'),('res_id','in',[e.id for e in user.employee_ids])]

For hr manager:

[('res_model','=','hr.employee')]

アバター
破棄
関連投稿 返信 ビュー 活動
3
4月 15
8386
0
11月 23
2400
1
2月 23
5942
0
3月 22
1624
1
1月 22
6779