Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
5977 Prikazi

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
Opusti

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

Related Posts Odgovori Prikazi Aktivnost
2
avg. 25
2723
1
jul. 25
1090
3
jun. 25
8251
1
avg. 25
1151
0
maj 25
1518