Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3880 Переглядів

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 ...

Related Posts Відповіді Переглядів Дія
0
лист. 23
916
0
черв. 23
2131
0
жовт. 22
1986
0
жовт. 22
2095
2
жовт. 21
4431