跳至內容
選單
此問題已被標幟
5893 瀏覽次數

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
2397
1
7月 25
904
3
6月 25
8137
1
8月 25
1151
0
5月 25
1343