Commit da68c221 authored by Jean-Paul Smets's avatar Jean-Paul Smets

implementation of isOrderable and isDeliverable

make sure no reexpend on delivery_rule


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@791 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09de69a5
......@@ -139,6 +139,15 @@ An ERP5 Rule..."""
#LOG('Test Transformation Rule', 0, '')
# Only apply to Order applied rule
root_applied_rule = movement.getRootAppliedRule()
root_rule = root_applied_rule.getSpecialiseValue()
if root_rule is None:
return 0
if root_rule.getPortalType() != "Order Rule":
return 0
# Only apply to certain resources
resource = movement.getResourceValue()
if resource is None:
return 0
......@@ -334,3 +343,6 @@ An ERP5 Rule..."""
"""
Returns a list Divergence solvers
"""
# Deliverability / orderability
def isDeliverable(self, m):
return 1
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