Skip to Content
मेन्यू
This question has been flagged
2 Replies
2044 Views

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

Thanks

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
0
सित॰ 23
1228
0
सित॰ 24
1027
0
अग॰ 24
937
2
जन॰ 23
479
4
नव॰ 22
22570