or how to upload an excel file onto a field who is a field.Binary() by python code?
I have tried as below codes but failed:
test = xlrd.open_workbook('C:\Users\Administrator\Desktop\s.xlsx')
self.write({'datafile': base64.encodestring(test)})
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
or how to upload an excel file onto a field who is a field.Binary() by python code?
I have tried as below codes but failed:
test = xlrd.open_workbook('C:\Users\Administrator\Desktop\s.xlsx')
self.write({'datafile': base64.encodestring(test)})
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
1
nov. 22
|
3333 | |||
|
7
janv. 24
|
16621 | |||
|
0
mars 15
|
4769 | |||
|
0
mars 15
|
6016 | |||
|
2
sept. 23
|
2035 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.