İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3943 Görünümler

Code Preview

Error Preview

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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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

Üretici

i update question please review images again ...

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Kas 23
1050
0
Haz 23
2247
0
Eki 22
2120
0
Eki 22
2215
2
Eki 21
4542