跳至内容
菜单
此问题已终结
2 回复
26032 查看

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

相关帖文 回复 查看 活动
0
10月 23
1480
4
10月 18
8227
3
6月 18
6810
1
12月 19
3421
0
10月 19
2717