Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5983 Visualizzazioni

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
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
2
ago 25
2729
1
lug 25
1091
3
giu 25
8252
1
ago 25
1151
0
mag 25
1518