Skip to Content
Menú
This question has been flagged
2 Respostes
2039 Vistes

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 Best Answer

Thanks

Avatar
Descartar
Best Answer

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
Related Posts Respostes Vistes Activitat
0
de set. 23
1226
0
de set. 24
1023
0
d’ag. 24
936
2
de gen. 23
479
4
de nov. 22
22526