Commit 5fe5489b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

applied_rule.getMovementList() should return contained simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31055 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b06bad99
...@@ -36,6 +36,7 @@ from Products.ERP5Type.XMLObject import XMLObject ...@@ -36,6 +36,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.PsycoWrapper import psyco from Products.ERP5Type.PsycoWrapper import psyco
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from Products.ERP5.Document.Rule import Rule
from zLOG import LOG from zLOG import LOG
...@@ -278,3 +279,10 @@ class AppliedRule(XMLObject): ...@@ -278,3 +279,10 @@ class AppliedRule(XMLObject):
else: else:
return getTreeDelivered(self) return getTreeDelivered(self)
security.declareProtected(Permissions.AccessContentsInformation,
'getMovementList')
def getMovementList(self, portal_type=None, **kw):
"""
Return a list of movements.
"""
return self.objectValues(portal_type=Rule.movement_type)
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