[Erp5-report] r12466 - /erp5/trunk/products/ERP5/Document/Movement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 30 18:17:29 CET 2007
Author: romain
Date: Tue Jan 30 18:17:28 2007
New Revision: 12466
URL: http://svn.erp5.org?rev=12466&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5/Document/Movement.py
Modified: erp5/trunk/products/ERP5/Document/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Movement.py?rev=12466&r1=12465&r2=12466&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py Tue Jan 30 18:17:28 2007
@@ -962,3 +962,20 @@
# 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, )
More information about the Erp5-report
mailing list