Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1979 Vistas

please how can i uploade lot of documents in field ?

Module :    

document = fields.Binary(string='Document', tracking=True)

document_name = fields.Char(string='Document Name', tracking=True)

XML :


Avatar
Descartar
Autor Mejor respuesta

Thanks

Avatar
Descartar
Mejor respuesta

You can use Many2many field with model ir.attachment

    document_ids = fields.Many2many('ir.attachment', string="Shipping Documents", help='Please attach Documents', copy=False)	             	
	             	

Use widget="many2many_binary" attribute for field

Hope this helps.



Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 23
1212
0
sept 24
941
0
ago 24
840
2
ene 23
479
4
nov 22
22456