콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3944 화면

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

관련 게시물 답글 화면 활동
0
11월 23
1051
0
6월 23
2248
0
10월 22
2121
0
10월 22
2216
2
10월 21
4542