[Erp5-report] r16954 - /erp5/trunk/products/ERP5/Document/ImmobilisableItem.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 11 11:54:10 CEST 2007
Author: nicolas
Date: Thu Oct 11 11:54:10 2007
New Revision: 16954
URL: http://svn.erp5.org?rev=16954&view=rev
Log:
Update immobilisation_state on related movement when expand fails
Modified:
erp5/trunk/products/ERP5/Document/ImmobilisableItem.py
Modified: erp5/trunk/products/ERP5/Document/ImmobilisableItem.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/ImmobilisableItem.py?rev=16954&r1=16953&r2=16954&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/ImmobilisableItem.py (original)
+++ erp5/trunk/products/ERP5/Document/ImmobilisableItem.py Thu Oct 11 11:54:10 2007
@@ -1024,7 +1024,10 @@
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)
More information about the Erp5-report
mailing list