Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
6876 Vizualizări

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")
Imagine profil
Abandonează
Cel mai bun răspuns

kiran  k have you done it bro ?

Imagine profil
Abandonează
Cel mai bun răspuns

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


xml

<field name='attachment' widget='many2many_binary' string='Add Attachments'/>
Imagine profil
Abandonează
Autor

Thanks for the reply.

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