Skip to Content
Menu
This question has been flagged
2 Replies
26916 Views

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
Discard
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
Discard
Author

Perfect, Accepting as answer.

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

Author

Yes, Got it

Related Posts Replies Views Activity
0
Oct 23
2113
4
Oct 18
8941
3
Jun 18
7421
1
Dec 19
3966
0
Oct 19
3269