Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
26237 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

Perfect, Accepting as answer.

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

Autor

Yes, Got it

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Okt. 23
1610
4
Okt. 18
8389
3
Juni 18
6954
1
Dez. 19
3545
0
Okt. 19
2853