Commit 6513474e authored by Jérome Perrin's avatar Jérome Perrin

- for consistency with other reports, don't take into account simulation in account module listbox

- stop using the no longer needed where expression hack

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31647 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 930eec9e
...@@ -57,9 +57,8 @@ ...@@ -57,9 +57,8 @@
params = portal.ERP5Accounting_getParams(selection_name)\n params = portal.ERP5Accounting_getParams(selection_name)\n
params[\'omit_input\'] = omit_input\n params[\'omit_input\'] = omit_input\n
params[\'omit_output\'] = omit_output\n params[\'omit_output\'] = omit_output\n
\n # For now, we omit simulation to be compatible with other reports.\n
# XXX this is a hack !\n params[\'omit_simulation\'] = True\n
params[\'where_expression\'] = " section.portal_type = \'Organisation\' "\n
\n \n
return portal.portal_simulation.getInventoryAssetPrice(\n return portal.portal_simulation.getInventoryAssetPrice(\n
node_uid=brain.uid,\n node_uid=brain.uid,\n
...@@ -111,6 +110,7 @@ return portal.portal_simulation.getInventoryAssetPrice(\n ...@@ -111,6 +110,7 @@ return portal.portal_simulation.getInventoryAssetPrice(\n
<string>portal</string> <string>portal</string>
<string>params</string> <string>params</string>
<string>_write_</string> <string>_write_</string>
<string>True</string>
<string>_apply_</string> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
......
...@@ -59,6 +59,8 @@ selection_params = context.portal_selections.getSelectionParamsFor(selection_nam ...@@ -59,6 +59,8 @@ selection_params = context.portal_selections.getSelectionParamsFor(selection_nam
\n \n
params[\'omit_input\'] = omit_input\n params[\'omit_input\'] = omit_input\n
params[\'omit_output\'] = omit_output\n params[\'omit_output\'] = omit_output\n
# For now, we omit simulation to be compatible with other reports.\n
params[\'omit_simulation\'] = True\n
\n \n
selection_domain = context.portal_selections.getSelectionDomainDictFor(selection_name)\n selection_domain = context.portal_selections.getSelectionDomainDictFor(selection_name)\n
selection_report = context.portal_selections.getSelectionReportDictFor(selection_name)\n selection_report = context.portal_selections.getSelectionReportDictFor(selection_name)\n
...@@ -81,9 +83,6 @@ else:\n ...@@ -81,9 +83,6 @@ else:\n
# make sure we only have Accounts as nodes\n # make sure we only have Accounts as nodes\n
params[\'node_category\'] = [\'account_type\',]\n params[\'node_category\'] = [\'account_type\',]\n
\n \n
# XXX this is a hack !\n
params[\'where_expression\'] = " section.portal_type = \'Organisation\' "\n
\n
return portal.portal_simulation.getInventoryAssetPrice( **params )\n return portal.portal_simulation.getInventoryAssetPrice( **params )\n
</string> </value> </string> </value>
</item> </item>
...@@ -133,6 +132,7 @@ return portal.portal_simulation.getInventoryAssetPrice( **params )\n ...@@ -133,6 +132,7 @@ return portal.portal_simulation.getInventoryAssetPrice( **params )\n
<string>params</string> <string>params</string>
<string>selection_params</string> <string>selection_params</string>
<string>_write_</string> <string>_write_</string>
<string>True</string>
<string>selection_domain</string> <string>selection_domain</string>
<string>selection_report</string> <string>selection_report</string>
<string>_getitem_</string> <string>_getitem_</string>
......
1082 1083
\ 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