Commit 5c7ef54e authored by Jérome Perrin's avatar Jérome Perrin

DeliveryLine: let a type based method decide if this delivery line is moving item

parent 2785a5cc
......@@ -109,6 +109,9 @@ class DeliveryLine(Movement, XMLMatrix, ImmobilisationMovement):
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 self.isAccountable()
def _getTotalPrice(self, default=0.0, context=None, fast=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