コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5940 ビュー

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'
アバター
破棄

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

関連投稿 返信 ビュー 活動
2
8月 25
2595
1
7月 25
1000
3
6月 25
8180
1
8月 25
1151
0
5月 25
1454