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.?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
|
2466 | |||
|
4
окт. 18
|
9291 | |||
|
3
июн. 18
|
7669 | |||
|
1
дек. 19
|
4282 | |||
|
0
окт. 19
|
3570 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Hope this will helps you and others: http://learnopenerp.blogspot.com/2016/06/using-binary-fields-in-odoo.html