Commit e7d501d5 authored by Nicolas Dumazet's avatar Nicolas Dumazet

DeliveryLine portal type does not exist: it will soon be impossible to create...

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd490053
......@@ -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
......
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