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!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
d’oct. 23
|
1225 | ||
|
2
de gen. 23
|
479 | ||
|
4
d’oct. 18
|
7968 | ||
|
3
de juny 18
|
6578 | ||
|
2
de des. 21
|
25685 |
Tel: (+216) 55 010 671