Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3962 Widoki

Code Preview

Error Preview

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Autor

i update question please review images again ...

Powiązane posty Odpowiedzi Widoki Czynność
0
lis 23
1070
0
cze 23
2266
0
paź 22
2138
0
paź 22
2230
2
paź 21
4557