Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2049 Weergaven

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
Annuleer
Auteur Beste antwoord

Thanks

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 23
1230
0
sep. 24
1033
0
aug. 24
941
2
jan. 23
479
4
nov. 22
22594