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

Code Preview

Error Preview

converting module from v10 to v13
module install but when i upload csv file its giving me error ..

頭像
捨棄
最佳答案

Hi,

Instead of StringIO try with BytesIO .

See: https://www.odoo.com/forum/help-1/question/odoo11-python-3-expects-string-not-bytes-when-writing-to-file-like-objects-129143

Thanks

頭像
捨棄
作者

File "/opt/odoo13/odoo-custom-addons/import_product_image/models/import_image.py", line 47, in import_file

for row in reader:

_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

after change

作者

i update question please review images again ...

相關帖文 回覆 瀏覽次數 活動
0
11月 23
907
0
6月 23
2120
0
10月 22
1983
0
10月 22
2091
2
10月 21
4426