[12.0][FIX] excel_import_export

Fix Import Excel wizard, cannot download template as in v12
core Odoo prevent download default binary.
pull/2505/head
Kitti U 2019-06-19 17:34:36 +07:00 committed by Aungkokolin1997
parent 8ca33effb9
commit 5c53c419e8
1 changed files with 3 additions and 0 deletions

View File

@ -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.'