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

In a form, all attachments are under the Attachment button. Is it possible to show the attachments in a listview / table in the form?

アバター
破棄
最善の回答

Hi Mario Gielissen

You could do it with a computed m2m field that retrieve the attachments using this domain:

 self.env['ir.attachment'].search([('res_model', '=', self._name), ('res_id', '=', self.id), ('type', 'in', ('binary', 'url'))])
アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 24
1540
1
3月 23
6754
2
4月 22
4207
0
10月 21
2708
2
5月 20
12287