[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
parent
8ca33effb9
commit
5c53c419e8
|
@ -41,6 +41,9 @@ class TestXLSXImportExport(TestExcelImportExport):
|
||||||
with Form(self.env['import.xlsx.wizard'].with_context(ctx)) as f:
|
with Form(self.env['import.xlsx.wizard'].with_context(ctx)) as f:
|
||||||
f.import_file = self.export_file
|
f.import_file = self.export_file
|
||||||
import_wizard = f.save()
|
import_wizard = f.save()
|
||||||
|
# Test sample template
|
||||||
|
import_wizard.get_import_sample()
|
||||||
|
self.assertTrue(import_wizard.datas)
|
||||||
# Test whether it loads correct template
|
# Test whether it loads correct template
|
||||||
self.assertEqual(import_wizard.template_id,
|
self.assertEqual(import_wizard.template_id,
|
||||||
self.env.ref('excel_import_export_demo.'
|
self.env.ref('excel_import_export_demo.'
|
||||||
|
|
Loading…
Reference in New Issue