[Erp5-report] r38746 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/Inventory.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 29 12:04:42 CEST 2010


Author: nicolas.dumazet
Date: Wed Sep 29 12:04:35 2010
New Revision: 38746

URL: http://svn.erp5.org?rev=38746&view=rev
Log:
DeliveryLine portal type does not exist: it will soon be impossible to create temporary objects if the portal type does not exist. Try to use a Movement instead; and if things break we will have to use a concrete, real portal type here

Modified:
    erp5/trunk/products/ERP5/Document/Inventory.py

Modified: erp5/trunk/products/ERP5/Document/Inventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Inventory.py?rev=38746&r1=38745&r2=38746&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Inventory.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Inventory.py [utf8] Wed Sep 29 12:04:35 2010
@@ -145,8 +145,8 @@ class Inventory(Delivery):
       
 
     if temp_constructor is None:
-      from Products.ERP5Type.Document import newTempDeliveryLine
-      temp_constructor = newTempDeliveryLine
+      from Products.ERP5Type.Document import newTempMovement
+      temp_constructor = newTempMovement
     stop_date = self.getStopDate()
 
     stock_object_list = []
@@ -238,6 +238,7 @@ class Inventory(Delivery):
                  'start_date': stop_date}
           temp_delivery_line = temp_constructor(self,
                                                 inventory_id)
+          
           # set category on it only if quantity not null
           # thus line with same uid will be deleted but we
           # don't insert line with null quantity as we test




More information about the Erp5-report mailing list