Commit 7173fd7d authored by Yoshinori Okuji's avatar Yoshinori Okuji

updateCausalityState needs to be unrestricted.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18498 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3912a2c7
......@@ -330,12 +330,16 @@ class Delivery(XMLObject, ImmobilisationDelivery):
divergence_list.extend(movement.getDivergenceList())
return divergence_list
def updateCausalityState(self,**kw):
def updateCausalityState(self, **kw):
"""
This is often called as an activity, it will check if the
deliver is convergent, and if so it will put the delivery
in a solved state, if not convergent in a diverged state
"""
updateCausalityState = UnrestrictedMethod(self._updateCausalityState)
return updateCausalityState(**kw)
def _updateCausalityState(self, **kw):
if getattr(self, 'diverge', None) is not None \
and getattr(self, 'converge', None) is not None:
if self.isDivergent(**kw):
......
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