跳至內容
選單
此問題已被標幟
1 回覆
7978 瀏覽次數

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
3月 21
5655
5
6月 20
36397
2
7月 25
4359
0
6月 25
2
2
12月 24
7581