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

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