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
Tel: (+216) 55 010 671 marwa.romdhan