Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
26063 Представления

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
1500
4
окт. 18
8252
3
июн. 18
6824
1
дек. 19
3432
0
окт. 19
2733