Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3895 Представления

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
939
0
июн. 23
2146
0
окт. 22
2015
0
окт. 22
2119
2
окт. 21
4439