Code is
def import_file(self):
file = io.BytesIO(base64.decodestring(self.file))
reader = csv.reader(file, delimiter=',')
csv.field_size_limit(sys.maxsize)
skip_header = True
for row in reader:
Error is
File "/opt/odoo13/odoo-custom-addons/import_product_image/models/import_image.py", line 52, in import_file for row in reader: _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
do you need to import images from csv file?
yes its your module converting into v13 from v10