Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
26200 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

Perfect, Accepting as answer.

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

Forfatter

Yes, Got it

Related Posts Besvarelser Visninger Aktivitet
0
okt. 23
1599
4
okt. 18
8359
3
jun. 18
6916
1
dec. 19
3507
0
okt. 19
2835