Future method for Simulation Movement: Don't try to search successor...

Future method for Simulation Movement: Don't try to search successor trade_phases when looking up expand rules

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45189 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fecf7a58
......@@ -143,4 +143,15 @@ def patch():
SimulationMovement.isBuildable = isBuildable
def _getApplicableRuleList(self):
""" Search rules that match this movement, but don't try to look up
successor trade_phases
"""
portal_rules = self.getPortalObject().portal_rules
return portal_rules.searchRuleList(self,
sort_on='version',
sort_order='descending')
SimulationMovement._getApplicableRuleList = _getApplicableRuleList
patch()
12
\ No newline at end of file
13
\ 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