Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1873 Переглядів

Hi,


If I use Settings -> Attachments I don't see all my attachments.

Eg. I have a field image = fields.Binary(... attachment=True). If I add images to a model I can't see them in the Frontend
The interesting thing is i see the Attachment in the database table.

And even if I create another field with a relation to ir.attachment I can chose this attachment in the frontend. 
How can I access this images in the backend? This query returns []

eg.
attachment_ids = ( env["ir.attachment"] .sudo() .search([("res_model", "=", "forum.post"), ("res_id", "=", 1834)]))

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 23
7155
2
квіт. 22
4664
0
жовт. 21
2983
2
трав. 20
12615
2
груд. 17
4691