I have a binary field that holds my excel file and I need to read the data from it. I need to get the data as rows. How can I achieve this?
Can anyone help?
I have a binary field that holds my excel file and I need to read the data from it. I need to get the data as rows. How can I achieve this?
Can anyone help?
I got the answer.
Use xlrd to read the file as given below.
from xlrd import open_workbook
import base64
wb = open_workbook(file_contents = base64.decodestring(obj.file))
sheet = wb.sheets()[0]
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
0
abr 26
|
7 | |||
|
1
dic 18
|
4304 | |||
|
2
oct 18
|
9281 | |||
|
1
dic 16
|
9023 | |||
|
2
nov 16
|
7580 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Well, I have faced the same issue
https://www.odoo.com/forum/help-1/question/how-to-import-xls-data-into-binary-field-in-odoo-10-using-a-two-dimensional-list-112749