Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
26266 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

Perfect, Accepting as answer.

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

Tekijä

Yes, Got it

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
lokak. 23
1638
4
lokak. 18
8407
3
kesäk. 18
6967
1
jouluk. 19
3562
0
lokak. 19
2873