İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
26197 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Perfect, Accepting as answer.

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

Üretici

Yes, Got it

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eki 23
1598
4
Eki 18
8356
3
Haz 18
6915
1
Ara 19
3504
0
Eki 19
2832