Commit 45280bd8 authored by Nicolas Delaby's avatar Nicolas Delaby

Change type of tag for expandAmortisation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12552 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbc25e7c
...@@ -1007,12 +1007,12 @@ class ImmobilisableItem(XMLObject, Amount): ...@@ -1007,12 +1007,12 @@ class ImmobilisableItem(XMLObject, Amount):
# are no more in 'calculating' immobilisation_state # are no more in 'calculating' immobilisation_state
related_packing_list_list = self.getAggregateRelatedValueList() related_packing_list_list = self.getAggregateRelatedValueList()
related_packing_list_path_list = [x.getPath() for x in related_packing_list_list] related_packing_list_path_list = [x.getPath() for x in related_packing_list_list]
related_packing_list_uid_list = ['%s' % x.getUid() for x in related_packing_list_list] related_packing_list_uid_list = ['%i' % x.getUid() for x in related_packing_list_list]
self.activate( self.activate(
after_path_and_method_id=( after_path_and_method_id=(
related_packing_list_path_list, related_packing_list_path_list,
['immediateReindexObject', 'recursiveImmediateReindexObject', 'updateImmobilisationState']), ['immediateReindexObject', 'recursiveImmediateReindexObject', 'updateImmobilisationState']),
after_tag=related_packing_list_uid_list after_tag=related_packing_list_uid_list
).immediateExpandAmortisation() ).immediateExpandAmortisation()
...@@ -1026,10 +1026,10 @@ class ImmobilisableItem(XMLObject, Amount): ...@@ -1026,10 +1026,10 @@ class ImmobilisableItem(XMLObject, Amount):
self._createAmortisationRule() self._createAmortisationRule()
except ImmobilisationValidityError: except ImmobilisationValidityError:
related_packing_list_list = self.getAggregateRelatedValueList() related_packing_list_list = self.getAggregateRelatedValueList()
related_packing_list_uid_list = ['%s' % x.getUid() for x in related_packing_list_list] related_packing_list_uid_list = ['%i' % x.getUid() for x in related_packing_list_list]
self.activate(tag=related_packing_list_uid_list).expandAmortisation() self.activate(tag=related_packing_list_uid_list).expandAmortisation()
security.declareProtected(Permissions.View, 'getSectionMovementValueList') security.declareProtected(Permissions.View, 'getSectionMovementValueList')
def getSectionMovementValueList(self, def getSectionMovementValueList(self,
include_to_date=0, include_to_date=0,
......
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