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

Dear All,

I am new to openerp. Appreciate if someone could help me out how to disable the user for deleting the attachment?

https://dl.dropboxusercontent.com/u/42025188/attachment_delete.png

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

you should play with the record rules.

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

using attachment_size_limit module Block users to upload files.

Module: https://www.odoo.com/apps/7.0/attachment_size_limit/

http://openerpservice.in/define-size-limit-for-the-attachments-in-openerp7-0/

 

 

Ảnh đại diện
Huỷ bỏ
Tác giả

What if I allow upload attachment but disallow delete?

Then use Record rules set ir_attachment table set create, read, write check and delete options uncheck.

Tác giả

Hi prakash, I could not find any record for attachment. Kindly refer to the screenshot. https://dl.dropboxusercontent.com/u/42025188/could_not_find_attach_record.png

create new group ex: Attachment/User and in the Access Rights tab add new item object name ir.attachment and check access right read, write, create and uncheck delete and group assign to the user.

Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 5 23
14683
2
thg 12 23
4600
1
thg 5 22
1959
0
thg 4 22
1482
2
thg 3 19
7129