跳至内容
菜单
此问题已终结
5837 查看

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
2100
1
7月 25
671
3
6月 25
8057
1
8月 25
1150
0
5月 25
1243