コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1894 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 23
7186
2
4月 22
4682
0
10月 21
2990
2
5月 20
12630
2
12月 17
4700