Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3972 Vizualizări

Code Preview

Error Preview

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
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 ...

Related Posts Răspunsuri Vizualizări Activitate
0
nov. 23
1073
0
iun. 23
2271
0
oct. 22
2141
0
oct. 22
2231
2
oct. 21
4558