Commit 6871941a authored by Nicolas Dumazet's avatar Nicolas Dumazet

committing local changes. zSelectMovement list had been

improved and renamed to zSelectBuildableMovementList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37637 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b4d4186
...@@ -596,8 +596,15 @@ class BusinessPath(Path, Predicate): ...@@ -596,8 +596,15 @@ class BusinessPath(Path, Predicate):
search_kw['movement.price'] = {'query':0, 'range':'neq'} search_kw['movement.price'] = {'query':0, 'range':'neq'}
sql_kw = portal_catalog.buildSQLQuery(**search_kw) sql_kw = portal_catalog.buildSQLQuery(**search_kw)
""" """
all_movement_list = self.BusinessPath_zSelectMovement( predecessor_state = self.getPredecessorValue()
if predecessor_state is None:
predecessor_uid_list = []
else:
predecessor_list = predecessor_state.getSuccessorRelatedValueList()
predecessor_uid_list = [x.getUid() for x in predecessor_list]
all_movement_list = self.BusinessPath_zSelectBuildableMovementList(
business_path_uid=self.getUid(), business_path_uid=self.getUid(),
predecessor_uid_list=predecessor_uid_list,
**sql_kw) **sql_kw)
# select method should return only non-delivered movements, but # select method should return only non-delivered movements, but
......
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