Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5835 Представления

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.

Related Posts Ответы Просмотры Активность
2
авг. 25
2093
1
июл. 25
663
3
июн. 25
8056
1
авг. 25
1150
0
мая 25
1243