Commit 17fd0046 authored by Sebastien Robin's avatar Sebastien Robin

Movement: let a type based method decide if this movement is moving item

Reuse code of delivery to ensure we can customize which item should be
in item table
parent 5ee5c20f
......@@ -220,6 +220,9 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
security.declareProtected(Permissions.AccessContentsInformation,
'isMovingItem')
def isMovingItem(self, item):
type_based_script = self._getTypeBasedMethod('isMovingItem')
if type_based_script:
return type_based_script(item)
return False
security.declareProtected(Permissions.AccessContentsInformation, 'getMovedItemUidList')
......
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