Ir al contenido
Menú
Se marcó esta pregunta
6342 Vistas

When I Import xlwt directly just Example , 

try:
import xlwt from xlwt import Borders except ImportError: xlwt = None

then working fine with

workbook = xlwt.Workbook()


But when I used the python lib for xlwt :~ https://pypi.org/project/xlwt/#files and put into custom like this

from odoo.addons.inventory.python_lib import xlwt

and calling the

workbook = xlwt.Workbook()

That time error popup
AttributeError: 'NoneType' object has no attribute 'Workbook'
Avatar
Descartar

Please use a meaningful title and ask a specific question to make your problem understandable.

Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 25
13
2
ago 25
3645
1
jul 25
1736
3
jun 25
8676
1
ago 25
1153