Se rendre au contenu
Menu
Cette question a été signalée
5865 Vues

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
Ignorer

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

Publications associées Réponses Vues Activité
2
août 25
2195
1
juil. 25
748
3
juin 25
8076
1
août 25
1150
0
mai 25
1257