В пользовательском модуле я добавляю новое поле ir_attchment_ids.
При подключении другого пользователя (не администратора) я получил эту ошибку. < /p>
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.
< /code>
Вот мой код < /p>
python: < /p>
class AddAttachment(models.Model):
_name = "add.attachment"
attachment_ids = fields.Many2many("ir.attachment", string="My Attachment")
< /code>
xml: < /p>
add.ttachment.form
add.ttachment
add.ttachment.tree
add.ttachment
Add Attachment
add.attachment
tree,form
< /code>
Security < /p>
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
< /code>
есть идея, пожалуйста?
Спасибо.>
Подробнее здесь: https://stackoverflow.com/questions/789 ... ts-odoo-17
Проблема с правилами доступа для вложений / Odoo 17 ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение