Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
26225 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor

Perfect, Accepting as answer.

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

Autor

Yes, Got it

Related Posts Răspunsuri Vizualizări Activitate
0
oct. 23
1607
4
oct. 18
8376
3
iun. 18
6935
1
dec. 19
3521
0
oct. 19
2842