Skip to Content
Menú
This question has been flagged
2 Respostes
26165 Vistes

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
Descartar
Best Answer

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
Descartar
Autor

Perfect, Accepting as answer.

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

Autor

Yes, Got it

Related Posts Respostes Vistes Activitat
0
d’oct. 23
1576
4
d’oct. 18
8339
3
de juny 18
6886
1
de des. 19
3486
0
d’oct. 19
2800