Skip to Content
Menú
This question has been flagged
1 Respondre
5953 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
de des. 24
1540
1
de març 23
6754
2
d’abr. 22
4207
0
d’oct. 21
2707
2
de maig 20
12285