Commit 235c1f66 authored by Sebastien Robin's avatar Sebastien Robin

this assertion does not match interface documentation. It will

be useful to know expected start date for something else than
applied rule

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b3a3cac
...@@ -167,9 +167,6 @@ class BusinessProcess(Path, XMLObject): ...@@ -167,9 +167,6 @@ class BusinessProcess(Path, XMLObject):
delay_mode -- optional value to specify calculation mode ('min', 'max') delay_mode -- optional value to specify calculation mode ('min', 'max')
if no value specified use average delay if no value specified use average delay
""" """
if explanation.getPortalType() != 'Applied Rule':
raise TypeError('explanation must be an Applied Rule')
if explanation.getParentValue().getPortalType() == 'Simulation Tool': if explanation.getParentValue().getPortalType() == 'Simulation Tool':
raise ValueError('explanation must not be a Root Applied Rule') raise ValueError('explanation must not be a Root Applied Rule')
......
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