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

Kindly assist me on getting a preview on Many2many field to ir.attachment

fields.Many2many('ir.attachment', 'attachment_rel', 'pro_id', 'attach_id', string="Attached File 1")
الصورة الرمزية
إهمال
أفضل إجابة

kiran  k have you done it bro ?

الصورة الرمزية
إهمال
أفضل إجابة

py
attachment = fields.Many2many('ir.attachment','attachment_rel','pro_id','attach_id', string='Attachments',)


xml

<field name='attachment' widget='many2many_binary' string='Add Attachments'/>
الصورة الرمزية
إهمال
الكاتب

Thanks for the reply.

But many2many_binary widget, I cannot preview the attached file..I need a preview