تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5998 أدوات العرض

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
ديسمبر 24
1571
1
مارس 23
6792
2
أبريل 22
4242
0
أكتوبر 21
2766
2
مايو 20
12324