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

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

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
Zrušit
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 Odpovědi Zobrazení Aktivita
0
říj 23
1775
4
říj 18
8573
3
čvn 18
7068
1
pro 19
3642
0
říj 19
2996