Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
26191 Prikazi

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
Opusti
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
Opusti
Avtor

Perfect, Accepting as answer.

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

Avtor

Yes, Got it

Related Posts Odgovori Prikazi Aktivnost
0
okt. 23
1598
4
okt. 18
8351
3
jun. 18
6906
1
dec. 19
3498
0
okt. 19
2827