Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2106 Visualizzazioni

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
Abbandona
Autore Risposta migliore

Thanks

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 23
1245
0
set 24
1091
0
ago 24
998
2
gen 23
479
4
nov 22
22660