Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5989 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
dic 24
1551
1
mar 23
6762
2
apr 22
4224
0
ott 21
2729
2
mag 20
12299