تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5860 أدوات العرض

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
أغسطس 25
2176
1
يوليو 25
733
3
يونيو 25
8069
1
أغسطس 25
1150
0
مايو 25
1250