Commit c79828d3 authored by Sebastien Robin's avatar Sebastien Robin

added is_accountable parameter to getInventoryList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6bab850b
...@@ -189,7 +189,7 @@ class SimulationTool (BaseTool): ...@@ -189,7 +189,7 @@ class SimulationTool (BaseTool):
simulation_state=None, transit_simulation_state = None, omit_transit=0, simulation_state=None, transit_simulation_state = None, omit_transit=0,
input_simulation_state = None, output_simulation_state=None, input_simulation_state = None, output_simulation_state=None,
variation_text=None, sub_variation_text=None, variation_text=None, sub_variation_text=None,
variation_category=None, variation_category=None,is_accountable=None,
**kw) : **kw) :
""" """
generates keywork and calls buildSqlQuery generates keywork and calls buildSqlQuery
...@@ -221,6 +221,9 @@ class SimulationTool (BaseTool): ...@@ -221,6 +221,9 @@ class SimulationTool (BaseTool):
if len(resource_uid_list) : if len(resource_uid_list) :
new_kw[table + '.resource_uid'] = resource_uid_list new_kw[table + '.resource_uid'] = resource_uid_list
if is_accountable is not None:
new_kw[table + '.is_accountable'] = is_accountable
node_uid_list = self._generatePropertyUidList(node) node_uid_list = self._generatePropertyUidList(node)
if len(node_uid_list) : if len(node_uid_list) :
new_kw[table + '.node_uid'] = node_uid_list new_kw[table + '.node_uid'] = node_uid_list
...@@ -404,6 +407,8 @@ class SimulationTool (BaseTool): ...@@ -404,6 +407,8 @@ class SimulationTool (BaseTool):
omit_output omit_output
is_accountable - 0 or 1. Select only movement from deliveries, not orders
selection_domain, selection_report - see ListBox selection_domain, selection_report - see ListBox
group_by_variation (useless on getInventory, but useful on getInventoryList) group_by_variation (useless on getInventory, but useful on getInventoryList)
......
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