diff --git a/product/ERP5OOo/tests/testFormPrintout.py b/product/ERP5OOo/tests/testFormPrintout.py index 309582813e387370a607abb6e84875dcae0ab5aa..8f00f95e989661fa8f579378ec6cb944b6f178b9 100644 --- a/product/ERP5OOo/tests/testFormPrintout.py +++ b/product/ERP5OOo/tests/testFormPrintout.py @@ -597,10 +597,8 @@ class TestFormPrintout(ERP5TypeTestCase): erp5form.addERP5Form(id='Foo2_view', title='Foo2') foo2_view = custom.Foo2_view - # Attention: Report.py popReport, pushReport - # only accepts named 'listbox' Listbox - foo2_view.manage_addField('listbox', 'listbox', 'ListBox') - listbox = foo2_view.listbox + foo2_view.manage_addField('listbox_report', 'listbox report', 'ListBox') + listbox = foo2_view.listbox_report createZODBPythonScript( self.portal.portal_skins.custom, @@ -615,6 +613,7 @@ return foo_list ) message = listbox.ListBox_setPropertyList( field_list_method = 'FooReport_getFooList', + field_selection_name = 'listbox_report_selection', field_portal_types = 'Foo Line | Foo Line', field_columns = 'id|ID\ntitle|Title\nquantity|Quantity\nstart_date|Date',) self.failUnless('Set Successfully' in message) @@ -627,9 +626,11 @@ from Products.ERP5Form.Report import ReportSection r1 = ReportSection(path=context.getPhysicalPath(), form_id='Foo2_view', + selection_name='listbox_report_selection', selection_params={'title':'foo_04_Iteration_1'}) r2 = ReportSection(path=context.getPhysicalPath(), form_id='Foo2_view', + selection_name='listbox_report_selection', selection_params={'title':'foo_04_Iteration_2'}) report_section_list = [r1, r2] return report_section_list diff --git a/product/ERP5OOo/tests/test_document/Foo_002.odt b/product/ERP5OOo/tests/test_document/Foo_002.odt index 71ee2d522ee377589e94423f62f58a7cef732bb0..2f16d14d771d4c7e6541d073e73ab20b12b06b03 100644 Binary files a/product/ERP5OOo/tests/test_document/Foo_002.odt and b/product/ERP5OOo/tests/test_document/Foo_002.odt differ