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!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Oct 23
|
591 | ||
|
2
Jan 23
|
479 | ||
|
4
Oct 18
|
7101 | ||
|
3
Jun 18
|
5861 | ||
|
2
Dec 21
|
24298 |
Tel: (+216) 55 010 671 marwa.romdhan