Skip to Content
Menu
This question has been flagged
5994 Zobrazenia

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
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
2
aug 25
2746
1
júl 25
1096
3
jún 25
8259
1
aug 25
1151
0
máj 25
1524