Skip to Content
Menu
This question has been flagged
1 Odpoveď
5955 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
dec 24
1540
1
mar 23
6754
2
apr 22
4207
0
okt 21
2707
2
máj 20
12285