Commit f458363d authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove monkey patch.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19362 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f87872fa
...@@ -40,7 +40,7 @@ from zLOG import LOG ...@@ -40,7 +40,7 @@ from zLOG import LOG
class TransformationRuleError(Exception): pass class TransformationRuleError(Exception): pass
class TransformationRule(Rule): class TransformationRule(TransformationSourcingRuleMixin, Rule):
""" """
Order Rule object make sure an Order in the similation Order Rule object make sure an Order in the similation
is consistent with the real order is consistent with the real order
...@@ -323,5 +323,3 @@ class TransformationRule(Rule): ...@@ -323,5 +323,3 @@ class TransformationRule(Rule):
def isOrderable(self, m): def isOrderable(self, m):
return 0 return 0
from Products.ERP5Type.Utils import monkeyPatch
monkeyPatch(TransformationSourcingRuleMixin, TransformationRule)
...@@ -128,7 +128,7 @@ class TransformationSourcingRuleMixin(ExtensionClass.Base): ...@@ -128,7 +128,7 @@ class TransformationSourcingRuleMixin(ExtensionClass.Base):
portal_type=self.getPortalTransformationTypeList()) portal_type=self.getPortalTransformationTypeList())
return transformation return transformation
class TransformationSourcingRule(Rule): class TransformationSourcingRule(TransformationSourcingRuleMixin, Rule):
""" """
Transformation Sourcing Rule object make sure Transformation Sourcing Rule object make sure
items required in a Transformation are sourced items required in a Transformation are sourced
...@@ -264,5 +264,3 @@ class TransformationSourcingRule(Rule): ...@@ -264,5 +264,3 @@ class TransformationSourcingRule(Rule):
def isOrderable(self, m): def isOrderable(self, m):
return 0 return 0
from Products.ERP5Type.Utils import monkeyPatch
monkeyPatch(TransformationSourcingRuleMixin, TransformationSourcingRule)
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