[Erp5-report] r34722 kazuhiko - /erp5/trunk/products/ERP5Legacy/Document/InvoicingRule.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 22 13:46:08 CEST 2010
Author: kazuhiko
Date: Thu Apr 22 13:46:07 2010
New Revision: 34722
URL: http://svn.erp5.org?rev=34722&view=rev
Log:
In Invoice Simulation Rule, source should be source_administration of the input movement or its order's source. Same for destination.
Modified:
erp5/trunk/products/ERP5Legacy/Document/InvoicingRule.py
Modified: erp5/trunk/products/ERP5Legacy/Document/InvoicingRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/Document/InvoicingRule.py?rev=34722&r1=34721&r2=34722&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/Document/InvoicingRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/Document/InvoicingRule.py [utf8] Thu Apr 22 13:46:07 2010
@@ -74,6 +74,19 @@
def isDeliverable(self, movement):
return movement.getResource() is not None
+ def _getExpandablePropertyUpdateDict(self, applied_rule, movement,
+ business_path, current_property_dict):
+ """
+ In Invoice Simulation Rule, source should be source_administration
+ of the input movement or its order's source. Same for destination.
+ """
+ root_simulation_movement = movement.getRootSimulationMovement()
+ source = movement.getSourceAdministration() or \
+ root_simulation_movement.getSource()
+ destination = movement.getDestinationAdministration() or \
+ root_simulation_movement.getDestination()
+ return {'source':source, 'destination':destination}
+
security.declareProtected(Permissions.AccessContentsInformation,
'getExpandablePropertyList')
def getExpandablePropertyList(self, default=None):
More information about the Erp5-report
mailing list