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
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
okt. 23
|
1594 | ||
|
2
jan. 23
|
479 | ||
|
4
okt. 18
|
8344 | ||
|
3
jun. 18
|
6892 | ||
|
2
dec. 21
|
26177 |
Tel: (+216) 55 010 671