Commit 530d8414 authored by Romain Courteaud's avatar Romain Courteaud

Add method asMovementList.

    Placeholder method called when indexing a movement.

    It can be overloaded to generate multiple movements 
    from a single one.
    It is used for cataloging a movement multiple time in 
    the movement/stock tables.

    Ex: a movement have multiple destinations.
    asMovementList returns a list a movement context with different 
    single destination.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7545b841
......@@ -962,3 +962,20 @@ class Movement(XMLObject, Amount):
# For accounting, returns the quantity converted in a default unit
# """
# return self.getStandardInventoriatedQuantity()
security.declareProtected( Permissions.AccessContentsInformation,
'asMovementList')
def asMovementList(self):
"""
Placeholder method called when indexing a movement.
It can be overloaded to generate multiple movements
from a single one.
It is used for cataloging a movement multiple time in
the movement/stock tables.
Ex: a movement have multiple destinations.
asMovementList returns a list a movement context with different
single destination.
"""
return (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