Commit 95cab232 authored by Sebastien Robin's avatar Sebastien Robin

remove some remaining usages of Business State

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34870 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ecf9753
......@@ -104,15 +104,16 @@ class BusinessProcess(Path, XMLObject):
**kw parameters follows the API of searchValues / contentValues
"""
# Naive implementation to redo XXX
kw['portal_type'] = "Business State"
return self.contentValues(*args, **kw)
kw['portal_type'] = "Business Path"
return [x for x in [y.getSuccessorValue() for y in \
self.contentValues(*args, **kw)] if x is not None]
# Access to path and states of the business process
def isCompleted(self, explanation):
"""
True if all states are completed
"""
for state in self.getStateValueList():
for path in self.getStateValueList():
if not state.isCompleted(explanation):
return False
return True
......
......@@ -46,7 +46,6 @@ class TestBPMMixin(ERP5TypeTestCase):
business_process_portal_type = 'Business Process'
business_path_portal_type = 'Business Path'
business_state_portal_type = 'Business State'
normal_resource_use_category_list = ['normal']
invoicing_resource_use_category_list = ['discount', 'tax']
......
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