Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1571 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 23
6792
2
Apr 22
4243
0
Okt 21
2766
2
Mei 20
12325
2
Des 17
4425