Commit acc0d586 authored by Jean-Paul Smets's avatar Jean-Paul Smets

recursive reindexing implemented by Folder

implemented getDelivery


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@100 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e094fef2
......@@ -442,6 +442,10 @@ une liste de mouvements..."""
def getDeliveryValue(self):
return self
security.declareProtected(Permissions.AccessContentsInformation, 'getDelivery')
def getDelivery(self):
return self.getRelativeUrl()
def getMovementList(self):
movement_list = []
for m in self.contentValues(filter={'portal_type': movement_type_list}):
......@@ -533,13 +537,6 @@ une liste de mouvements..."""
#######################################################
# Defer indexing process
def recursiveImmediateReindexObject(self):
# Reindex self
XMLObject.immediateReindexObject(self)
# Reindex lines
for line in self.contentValues(filter={'portal_type': movement_type_list}):
line.recursiveImmediateReindexObject()
def reindexObject(self, *k, **kw):
"""
Reindex children and simulation
......@@ -551,7 +548,6 @@ une liste de mouvements..."""
# Make sure expanded simulation is still OK (expand and reindex)
# self.activate().applyToDeliveryRelatedMovement(method_id = 'expand')
#######################################################
# Stock Management
def _getMovementResourceList(self):
......
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