跳至内容
菜单
此问题已终结
1 回复
3808 查看

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
806
0
6月 23
2024
0
10月 22
1917
0
10月 22
1995
2
10月 21
4368