跳至內容
選單
此問題已被標幟
1 回覆
5958 瀏覽次數

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
12286