Skip to Content
Menu
This question has been flagged
2 Replies
26224 Rodiniai

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.?

Portretas
Atmesti
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.

Portretas
Atmesti
Autorius

Perfect, Accepting as answer.

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

Autorius

Yes, Got it

Related Posts Replies Rodiniai Veikla
0
spal. 23
1606
4
spal. 18
8374
3
birž. 18
6935
1
gruod. 19
3520
0
spal. 19
2840