Ir al contenido
Menú
Se marcó esta pregunta
5856 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
2
ago 25
2171
1
jul 25
720
3
jun 25
8067
1
ago 25
1150
0
may 25
1246