Commit 900fb5dc authored by Sebastien Robin's avatar Sebastien Robin

use newContent instead of portal_types.constructContent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2183 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41827029
...@@ -611,13 +611,10 @@ class SimulationTool (BaseTool): ...@@ -611,13 +611,10 @@ class SimulationTool (BaseTool):
else: else:
delivery_line_type = 'Production Report Component' delivery_line_type = 'Production Report Component'
new_delivery_line_id = str(delivery.generateNewId()) #new_delivery_line_id = str(delivery.generateNewId())
self.portal_types.constructContent(type_name = delivery_line_type, delivery_line = delivery.newContent(type_name = delivery_line_type,
container = delivery,
id = new_delivery_line_id,
resource = resource_group.resource, resource = resource_group.resource,
) )
delivery_line = delivery[new_delivery_line_id]
line_variation_category_list = [] line_variation_category_list = []
line_variation_base_category_dict = {} line_variation_base_category_dict = {}
......
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