Commit f76a4e45 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Don't trash previous objects for erp5 core bt5

parent b437249e
......@@ -5405,7 +5405,10 @@ Business Template is a set of definitions, such as skins, portal types and categ
# always created a trash bin because we may to save object already present
# but not in a previous business templates apart at creation of a new site
if trash_tool is not None and (len(object_to_update) > 0 or len(self.portal_templates) > 2):
trashbin = trash_tool.newTrashBin(self.getTitle(), self)
if self.title == 'erp5_core':
trashbin = None
else:
trashbin = trash_tool.newTrashBin(self.getTitle(), self)
else:
trashbin = None
......
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