Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3263 Lượt xem

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)})

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2562
7
thg 1 24
15191
0
thg 3 15
3941
0
thg 3 15
5128
2
thg 9 23
1349