Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
26174 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

Perfect, Accepting as answer.

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

Auteur

Yes, Got it

Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 23
1585
4
okt. 18
8342
3
jun. 18
6889
1
dec. 19
3488
0
okt. 19
2807