تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
25773 أدوات العرض

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
أكتوبر 23
1261
4
أكتوبر 18
8024
3
يونيو 18
6613
1
ديسمبر 19
3257
0
أكتوبر 19
2596