Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
2099 Visualizações

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
Cancelar
Autor Melhor resposta

Thanks

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
set. 23
1244
0
set. 24
1077
0
ago. 24
989
2
jan. 23
479
4
nov. 22
22657