diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py index 45cbc46250a4b160909f5a68abce19179bd8149f..69fd2778a88ea89c5783527d730d6aa2045b772a 100644 --- a/product/ERP5/Tool/TemplateTool.py +++ b/product/ERP5/Tool/TemplateTool.py @@ -2127,6 +2127,10 @@ class TemplateTool (BaseTool): """ def comparePath(path): split_path_list = path.split('/') + # Paths with property item should have the least priority as they should + # be installed after installing the object only + if '#' in path: + return 11 if len(split_path_list) == 2 and split_path_list[0] in ('portal_types', 'portal_categories'): return 1 if len(split_path_list) > 2: