Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3873 Weergaven

Code Preview

Error Preview

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Auteur

i update question please review images again ...

Gerelateerde posts Antwoorden Weergaven Activiteit
0
nov. 23
891
0
jun. 23
2108
0
okt. 22
1949
0
okt. 22
2081
2
okt. 21
4423