Skip to Content
Menú
This question has been flagged
1478 Vistes

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)]))

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 23
6668
2
d’abr. 22
4120
0
d’oct. 21
2653
2
de maig 20
12224
2
de des. 17
4320