diff --git a/product/ERP5/Document/AppliedRule.py b/product/ERP5/Document/AppliedRule.py index d444b2aea26cf615e57f91c03db8393994fa288b..91f7f2e1ab1d178aa790159930f941971762ab6e 100644 --- a/product/ERP5/Document/AppliedRule.py +++ b/product/ERP5/Document/AppliedRule.py @@ -85,21 +85,6 @@ class AppliedRule(XMLObject): rule = self.getSpecialiseValue() return rule.test(my_parent) - # Simulation workflow - def reset(self): - """ - DO WE NEED IT ? - - -> this does either a diverge or a reset depending - on the position in the tree - - if it is in root position, it is a solve - if it is in non root position, it is a diverse - """ - rule = self.getSpecialiseValue() - if rule is not None: - rule.reset(self) - security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable') def isAccountable(self, movement): diff --git a/product/ERP5/Document/TransformationSourcingRule.py b/product/ERP5/Document/TransformationSourcingRule.py index 5b220b621eb6bf87546c322da061990d49eee1c9..210c3a059fa1786a3a2ec85fef0d962572f9ffb8 100644 --- a/product/ERP5/Document/TransformationSourcingRule.py +++ b/product/ERP5/Document/TransformationSourcingRule.py @@ -173,18 +173,6 @@ class TransformationSourcingRule(Rule): result = 0 return result - # Simulation workflow - def reset(self, applied_rule): - """ - DO WE NEED IT ? - - -> this does either a diverge or a reset depending - on the position in the tree - - if it is in root position, it is a solve - if it is in non root position, it is a diverse - """ - security.declareProtected(Permissions.ModifyPortalContent, 'expand') def expand(self, applied_rule, activate_kw=None,**kw): """