In a custom module , I add new field ir_attchment_ids . When connecting wih other user (not admin) , I got this error .
Uh-oh! Looks like you have stumbled upon some top-secret records. Sorry, user (id=8) doesn't have 'read' access to: - Attachment (ir.attachment) If you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies.
Here is my code
Python :
class AddAttachment(models.Model):
_name = "add.attachment"
attachment_ids = fields.Many2many("ir.attachment", string="My Attachment")
XML :
add.ttachment.form
add.ttachment
add.ttachment.tree
add.ttachment
Add Attachment
add.attachment
tree,form
SECURITY
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_add_attachment,add.attachment,model_add_attachment,,1,1,1,1
Any idea please ? Thanks.