Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
26453 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

Perfect, Accepting as answer.

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

Autore

Yes, Got it

Post correlati Risposte Visualizzazioni Attività
0
ott 23
1797
4
ott 18
8584
3
giu 18
7078
1
dic 19
3658
0
ott 19
3000