Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5858 Widoki

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'
Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
2172
1
lip 25
720
3
cze 25
8068
1
sie 25
1150
0
maj 25
1246