Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5970 มุมมอง

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'))])
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 24
1544
How to set attachments to public? แก้ไขแล้ว
1
มี.ค. 23
6758
2
เม.ย. 22
4220
0
ต.ค. 21
2717
2
พ.ค. 20
12294