Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5866 Lượt xem

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'
Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
2195
1
thg 7 25
748
3
thg 6 25
8077
1
thg 8 25
1150
0
thg 5 25
1257