Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5990 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
dec. 24
1552
1
mar. 23
6763
2
apr. 22
4225
0
okt. 21
2732
2
maj 20
12301