Hi
I Have in my wizard:
datas = fields.Binary('File')
filename = fields.Char('File Name')
and in .xml :
<field name="datas" filename="filename" />
<field name="filename" invisible="1"/>
But the field datas always has a string encoded
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
I Have in my wizard:
datas = fields.Binary('File')
filename = fields.Char('File Name')
and in .xml :
<field name="datas" filename="filename" />
<field name="filename" invisible="1"/>
But the field datas always has a string encoded
<field name="datas" filename="filename" />
TO
<field name="datas" widget="binary" filename="filename" />
sure........ it will work.
Hi marwa,
The file_name field contains the name of the file you are uploading.
The datas field contains the file you are uploading.
For decoding that file, you can use base64decoding.
import base64 |
Thanks for your response,
But I mean, In My view form I don't have the file name .
I have the content of file decoded !! I would appear the file name
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
0
жовт. 23
|
1530 | ||
|
2
січ. 23
|
479 | ||
|
4
жовт. 18
|
8281 | ||
|
3
черв. 18
|
6850 | ||
|
2
груд. 21
|
26115 |
Tel: (+216) 55 010 671