|
@ -36,7 +36,8 @@ class TestXLSXImportExport(TestExcelImportExport): |
|
|
'active_id': self.sale_order.id, |
|
|
'active_id': self.sale_order.id, |
|
|
'template_domain': [('res_model', '=', 'sale.order'), |
|
|
'template_domain': [('res_model', '=', 'sale.order'), |
|
|
('fname', '=', 'sale_order.xlsx'), |
|
|
('fname', '=', 'sale_order.xlsx'), |
|
|
('gname', '=', False)], } |
|
|
|
|
|
|
|
|
('gname', '=', False)], |
|
|
|
|
|
'template_context': {'state': 'draft'}, } |
|
|
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() |
|
|