Skip to Content
Menu
This question has been flagged
1 Atsakyti
5982 Rodiniai

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

Portretas
Atmesti
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'))])
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
gruod. 24
1548
1
kov. 23
6760
2
bal. 22
4223
0
spal. 21
2724
2
geg. 20
12297