Commit 83b096c4 authored by Jérome Perrin's avatar Jérome Perrin

workaround a bt bug

parent 7d2ca18b
......@@ -2772,8 +2772,8 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
force = kw.get('force')
installed_bt = kw.get('installed_bt')
if installed_bt is not None:
old_objects = getattr(installed_bt,
self.business_template_class_property)._objects
old_objects = getattr(getattr(installed_bt,
self.business_template_class_property), '_objects', {})
else:
old_objects = {}
for key in set(self._objects.keys()).union(old_objects.keys()):
......
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