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

Hi All,

I have a binary field in a wizard, and I am trying to get the name of file attached in button action of that wizard.

I know it is possible in website.

Any Hints.?

Avatar
Cancelar
Melhor resposta

Try this,

In Model,

file = fields.Binary("Attachment")

file_name = fields.Char("File Name")

In View,

<field name="file" filename="file_name"/>

<field name="file_name" invisible="1"/>

If you try this, binary field will show the file name.

Avatar
Cancelar
Autor

Perfect, Accepting as answer.

Could you please tell me any way to get the path of the attached file.?

Autor

Yes, Got it

Publicações relacionadas Respostas Visualizações Atividade
0
out. 23
1617
4
out. 18
8396
3
jun. 18
6954
1
dez. 19
3555
0
out. 19
2862