[12.0][FIX] excel_import_export

wrong use of dict.iteritems() for python3
pull/2505/head
Kitti U 2019-04-02 10:36:13 +07:00 committed by Aungkokolin1997
parent 403c4598ca
commit 74ff856062
1 changed files with 2 additions and 1 deletions

View File

@ -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()