diff --git a/product/ERP5/Tool/TrashTool.py b/product/ERP5/Tool/TrashTool.py index 4819fdb05e76990d24836c082d90c7901aab772e..777af87da61ef3ad8f1adc917a980e2b1d4953c9 100644 --- a/product/ERP5/Tool/TrashTool.py +++ b/product/ERP5/Tool/TrashTool.py @@ -130,6 +130,7 @@ class TrashTool(BaseTool): # export subobjects if save: obj = backup_object_container._getOb(object_id) + object_path = list(obj.getPhysicalPath()) else: object_path = container_path + [object_id] obj = self.unrestrictedTraverse(object_path)