Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5979 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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'))])
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
gru 24
1547
1
mar 23
6760
2
kwi 22
4222
0
paź 21
2719
2
maj 20
12296