diff --git a/excel_import_export/models/xlsx_export.py b/excel_import_export/models/xlsx_export.py index c7db3f928..78b9eb41f 100644 --- a/excel_import_export/models/xlsx_export.py +++ b/excel_import_export/models/xlsx_export.py @@ -244,7 +244,7 @@ class XLSXExport(models.AbstractModel): f.write(decoded_data) f.seek(0) f.close() - # Workbook created, temp fie removed + # Workbook created, temp file removed wb = load_workbook(ftemp) os.remove(ftemp) # Start working with workbook diff --git a/excel_import_export/wizard/import_xlsx_wizard.py b/excel_import_export/wizard/import_xlsx_wizard.py index 750dc17e1..49be5c07a 100644 --- a/excel_import_export/wizard/import_xlsx_wizard.py +++ b/excel_import_export/wizard/import_xlsx_wizard.py @@ -80,7 +80,7 @@ class ImportXLSXWizard(models.TransientModel): # Context testing if self._context.get('template_context', False): template_context = self._context['template_context'] - for key, value in template_context.iteritems(): + for key, value in template_context.items(): if key not in record or \ (record._fields[key].type == 'many2one' and record[key].id or record[key]) != value: