From 5c53c419e8a9fcb6964784826e15811078ed90b3 Mon Sep 17 00:00:00 2001 From: Kitti U Date: Wed, 19 Jun 2019 17:34:36 +0700 Subject: [PATCH] [12.0][FIX] excel_import_export Fix Import Excel wizard, cannot download template as in v12 core Odoo prevent download default binary. --- excel_import_export_demo/tests/test_xlsx_import_export.py | 3 +++ 1 file changed, 3 insertions(+) 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 d121c5799..8a6aa158a 100644 --- a/excel_import_export_demo/tests/test_xlsx_import_export.py +++ b/excel_import_export_demo/tests/test_xlsx_import_export.py @@ -41,6 +41,9 @@ class TestXLSXImportExport(TestExcelImportExport): with Form(self.env['import.xlsx.wizard'].with_context(ctx)) as f: f.import_file = self.export_file import_wizard = f.save() + # Test sample template + import_wizard.get_import_sample() + self.assertTrue(import_wizard.datas) # Test whether it loads correct template self.assertEqual(import_wizard.template_id, self.env.ref('excel_import_export_demo.'