Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
26190 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

Perfect, Accepting as answer.

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

Автор

Yes, Got it

Related Posts Відповіді Переглядів Дія
0
жовт. 23
1598
4
жовт. 18
8351
3
черв. 18
6906
1
груд. 19
3498
0
жовт. 19
2827