Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3811 Zobrazení

Code Preview

Error Preview

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
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 Odpovědi Zobrazení Aktivita
0
lis 23
810
0
čvn 23
2029
0
říj 22
1921
0
říj 22
1995
2
říj 21
4371