Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
5840 Weergaven

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
Annuleer

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

Gerelateerde posts Antwoorden Weergaven Activiteit
2
aug. 25
2105
1
jul. 25
673
3
jun. 25
8057
1
aug. 25
1150
0
mei 25
1243