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

when i run odoo version 10 in terminal using:

 python odoo-bin --addons ./addons

it give the error as below:

Error:  from openpyxl.styles import Style,

Font, Alignment, Border, Side ImportError: cannot import name Style

can anyone get it this error?

Please suggest the solution.

الصورة الرمزية
إهمال
أفضل إجابة

 I have the same error in Odoo 10.  I have written below the line.

 from openpyxl.styles import PatternFill, Border, Side, Alignment, Protection, Font

instead of

from openpyxl import Styles, Font, Alignment, Border, Side
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 21
5672
5
يونيو 20
36439
2
يوليو 25
4448
0
يونيو 25
2
2
ديسمبر 24
7632