Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
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.
About This Community
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/1/17, 9:05 AM|
|Seen: 1452 times|
|Last updated: 12/18/17, 9:13 AM|