diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py index de0e983b0f27190a2cf820dfc688bf1062fde3b8..a400a76faa8edaaceb6f317ae00819e8abec20b1 100644 --- a/product/ERP5/Tool/TemplateTool.py +++ b/product/ERP5/Tool/TemplateTool.py @@ -1896,6 +1896,11 @@ class TemplateTool (BaseTool): else: # If there is no item at old state, install the new_item new_item = installation_process.getBusinessItemByPath(path) + # XXX: Hack for not trying to install the sub-objects from zexp, + # This should rather be implemneted while exportign the object, + # where we shouldn't export sub-objects in the zexp + if new_item._value._tree: + del new_item._value._tree new_item.install(installation_process) return error_list