Commit f665a531 authored by Jérome Perrin's avatar Jérome Perrin

When no analytic is configured, 'group_analytic' is not passed by the report dialog.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37837 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6739cafb
...@@ -101,7 +101,7 @@ if gap_uid_list:\n ...@@ -101,7 +101,7 @@ if gap_uid_list:\n
default_gap_uid=gap_uid_list)] or -1\n default_gap_uid=gap_uid_list)] or -1\n
\n \n
request.set(\'is_accounting_report\', True)\n request.set(\'is_accounting_report\', True)\n
group_analytic = request[\'group_analytic\']\n group_analytic = request.get(\'group_analytic\', ())\n
group_analytic_uid = ()\n group_analytic_uid = ()\n
\n \n
extra_columns = ()\n extra_columns = ()\n
......
1335 1336
\ No newline at end of file \ No newline at end of file
...@@ -1905,7 +1905,6 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): ...@@ -1905,7 +1905,6 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
request_form['show_empty_accounts'] = 1 request_form['show_empty_accounts'] = 1
request_form['expand_accounts'] = 0 request_form['expand_accounts'] = 0
request_form['per_account_class_summary'] = 0 request_form['per_account_class_summary'] = 0
request_form['group_analytic'] = []
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.accounting_module, self.portal.accounting_module,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment