Commit e2a08d49 authored by wenjie.zheng's avatar wenjie.zheng

State.py: add function getAvailableTypeList for state type.

parent 21f5943c
......@@ -92,3 +92,15 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix):
for tr in self.getDestinationValueList():
ref_list.append(tr.getReference())
return ref_list
def getAvailableTypeList(self):
"""This is a method specific to ERP5. This returns a list of state types, which are used for portal methods.
"""
return (
'draft_order',
'planned_order',
'future_inventory',
'reserved_inventory',
'transit_inventory',
'current_inventory',
)
\ 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