Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5871 Vizualizări

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'
Imagine profil
Abandonează

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

Related Posts Răspunsuri Vizualizări Activitate
2
aug. 25
2227
1
iul. 25
763
3
iun. 25
8079
1
aug. 25
1150
0
mai 25
1260