Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2123 Visninger

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
Kassér
Forfatter Bedste svar

Thanks

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
sep. 23
1249
0
sep. 24
1112
0
aug. 24
1021
2
jan. 23
479
4
nov. 22
22698