跳至内容
菜单
此问题已终结
1 回复
5966 查看

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

形象
丢弃
最佳答案

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'))])
形象
丢弃
相关帖文 回复 查看 活动
0
12月 24
1543
1
3月 23
6758
2
4月 22
4217
0
10月 21
2711
2
5月 20
12291