Commit f3680eee authored by Nicolas Delaby's avatar Nicolas Delaby

Update immobilisation_state on related movement when expand fails

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16954 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e686b823
......@@ -1024,7 +1024,10 @@ class ImmobilisableItem(XMLObject, Amount):
try:
self._createAmortisationRule()
except ImmobilisationValidityError:
related_packing_list_list = self.getAggregateRelatedValueList()
delivery_list = self.getAggregateRelatedValueList()
for delivery in delivery_list:
if getattr(delivery, 'updateImmobilisationState', None) is not None:
delivery.updateImmobilisationState()
self.activate().expandAmortisation(activate_kw=activate_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