Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5984 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
dez. 24
1549
1
mar. 23
6760
2
abr. 22
4223
0
out. 21
2724
2
mai. 20
12297