Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
25768 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Perfect, Accepting as answer.

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

Penulis

Yes, Got it

Post Terkait Replies Tampilan Aktivitas
0
Okt 23
1260
4
Okt 18
8024
3
Jun 18
6612
1
Des 19
3257
0
Okt 19
2596