diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index b6914ae9bcf773b0b9990ca39f3f8efe4f401260..1ef03c3b7abf8b1d9f613f1d6c16fd8c867d240e 100755 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -602,6 +602,8 @@ class PathTemplateItem(ObjectTemplateItem): object_keys = [object_path] else: object_keys = self._path_archive.keys() + object_keys.sort() + object_keys.reverse() p = context.getPortalObject() for path in object_keys: for relative_url in self._resolvePath(p, [], path.split('/')):