From 74ff8560626464fd7601552e54a80a359565f313 Mon Sep 17 00:00:00 2001 From: Kitti U Date: Tue, 2 Apr 2019 10:36:13 +0700 Subject: [PATCH] [12.0][FIX] excel_import_export wrong use of dict.iteritems() for python3 --- excel_import_export_demo/tests/test_xlsx_import_export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/excel_import_export_demo/tests/test_xlsx_import_export.py b/excel_import_export_demo/tests/test_xlsx_import_export.py index 64fb18525..d121c5799 100644 --- a/excel_import_export_demo/tests/test_xlsx_import_export.py +++ b/excel_import_export_demo/tests/test_xlsx_import_export.py @@ -36,7 +36,8 @@ class TestXLSXImportExport(TestExcelImportExport): 'active_id': self.sale_order.id, 'template_domain': [('res_model', '=', 'sale.order'), ('fname', '=', 'sale_order.xlsx'), - ('gname', '=', False)], } + ('gname', '=', False)], + 'template_context': {'state': 'draft'}, } with Form(self.env['import.xlsx.wizard'].with_context(ctx)) as f: f.import_file = self.export_file import_wizard = f.save()