コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
26198 ビュー

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
1599
4
10月 18
8358
3
6月 18
6916
1
12月 19
3507
0
10月 19
2835