Skip to Content
मेन्यू
This question has been flagged
1 Reply
5992 Views

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

Avatar
Discard
Best Answer

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'))])
Avatar
Discard
Related Posts Replies Views Activity
0
दिस॰ 24
1552
1
मार्च 23
6763
2
अप्रैल 22
4226
0
अक्तू॰ 21
2733
2
मई 20
12304