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

Only show "accounting transaction movements" in GL

ERP5Accounting_getParams now pass portal_type or parent_portal_type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14137 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e643ac14
...@@ -100,6 +100,7 @@ params = dict(at_date=at_date,\n ...@@ -100,6 +100,7 @@ params = dict(at_date=at_date,\n
simulation_state=simulation_state,\n simulation_state=simulation_state,\n
omit_grouping_reference=omit_grouping_reference,\n omit_grouping_reference=omit_grouping_reference,\n
period_start_date=period_start_date,\n period_start_date=period_start_date,\n
portal_type=portal.getPortalAccountingMovementTypeList(),\n
no_mirror_section_uid_cache=1)\n no_mirror_section_uid_cache=1)\n
\n \n
if from_date:\n if from_date:\n
......
...@@ -158,9 +158,13 @@ simulation_state = selection_params.get(\'simulation_state\',\n ...@@ -158,9 +158,13 @@ simulation_state = selection_params.get(\'simulation_state\',\n
if simulation_state:\n if simulation_state:\n
params[\'simulation_state\'] = simulation_state\n params[\'simulation_state\'] = simulation_state\n
\n \n
parent_portal_type = selection_params.get(\'parent_portal_type\', None)\n portal_type = selection_params.get(\'portal_type\', None)\n
if parent_portal_type:\n if portal_type:\n
params[\'parent_portal_type\'] = parent_portal_type\n params[\'portal_type\'] = portal_type\n
else:\n
parent_portal_type = selection_params.get(\'parent_portal_type\', None)\n
if parent_portal_type:\n
params[\'parent_portal_type\'] = parent_portal_type\n
\n \n
if not ignore_cache:\n if not ignore_cache:\n
context.REQUEST.other[\'ERP5Accounting_getParams\'] = params\n context.REQUEST.other[\'ERP5Accounting_getParams\'] = params\n
...@@ -231,6 +235,7 @@ return dict(params)\n ...@@ -231,6 +235,7 @@ return dict(params)\n
<string>mirror_section_uid</string> <string>mirror_section_uid</string>
<string>payment_uid</string> <string>payment_uid</string>
<string>simulation_state</string> <string>simulation_state</string>
<string>portal_type</string>
<string>parent_portal_type</string> <string>parent_portal_type</string>
</tuple> </tuple>
</value> </value>
......
256 257
\ No newline at end of file \ No newline at end of file
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