Commit 9b16d7a0 authored by Arnaud Fontaine's avatar Arnaud Fontaine

On Business Template installation, after migrating a Property Sheet

from filesystem to ZODB, unwrap the created object before adding it to
the PersistentMapping, failing to do so resulted in "Can't Pickle
objects in acquisition wrappers" when serializing the object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43155 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40d35a36
......@@ -3691,7 +3691,7 @@ class PropertySheetTemplateItem(DocumentTemplateItem,
# Update 'migrate_object_dict' with the new path
key = 'portal_property_sheets/%s' % class_id
migrate_object_dict[key] = new_property_sheet
migrate_object_dict[key] = new_property_sheet.aq_base
del migrate_object_dict[class_id]
# Remove old reference in 'object_dict' as it does not make
......
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