Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1831 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 23
7099
2
apr. 22
4576
0
okt. 21
2939
2
mei 20
12572
2
dec. 17
4659