[Erp5-report] r29975 - /erp5/trunk/products/ERP5/tests/testInventoryModule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 23 15:22:57 CEST 2009


Author: kazuhiko
Date: Fri Oct 23 15:22:57 2009
New Revision: 29975

URL: http://svn.erp5.org?rev=29975&view=rev
Log:
use the real Internal Packing List for intenal packing lists.

Modified:
    erp5/trunk/products/ERP5/tests/testInventoryModule.py

Modified: erp5/trunk/products/ERP5/tests/testInventoryModule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInventoryModule.py?rev=29975&r1=29974&r2=29975&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInventoryModule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInventoryModule.py [utf8] Fri Oct 23 15:22:57 2009
@@ -57,6 +57,7 @@
     """
     pplm = self.getPortal().purchase_packing_list_module
     splm = self.getPortal().sale_packing_list_module
+    iplm = self.getPortal().internal_packing_list_module
 
     def deliverPackingList(pl):
       """step through all steps of packing list workflow."""
@@ -70,7 +71,7 @@
     # we create content :
     #   1 purchase packing list
     #   1 sale packing list
-    #   1 internal packing list (actually sale with same source)
+    #   1 internal packing list
     for month in range(1, 11):
       ppl = pplm.newContent(
                       portal_type='Purchase Packing List',
@@ -95,13 +96,13 @@
                       quantity=month*10)
       deliverPackingList(spl)
       
-      ipl = splm.newContent(
-                      portal_type='Sale Packing List',
+      ipl = iplm.newContent(
+                      portal_type='Internal Packing List',
                       source_value = sequence.get('organisation1'),
                       destination_value = sequence.get('organisation1'),
                       start_date=DateTime(2005, month, 1),
                     )
-      ipl.newContent( portal_type='Sale Packing List Line',
+      ipl.newContent( portal_type='Internal Packing List Line',
                       resource_value=sequence.get('resource'),
                       quantity=month*10)
       deliverPackingList(ipl)




More information about the Erp5-report mailing list