Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2029 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

Thanks

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 23
1222
0
zář 24
1011
0
srp 24
923
2
led 23
479
4
lis 22
22501