Skip to Content
Menu
This question has been flagged
5859 Rodiniai

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'
Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
2
rugp. 25
2175
1
liep. 25
729
3
birž. 25
8068
1
rugp. 25
1150
0
geg. 25
1247