diff --git a/product/ERP5/Tool/DomainTool.py b/product/ERP5/Tool/DomainTool.py index 14e18365ca0cdd269102be311826a18b0ca5cb0a..a83571db33bbfe36cd2d02776d0c7fba31c9aab9 100644 --- a/product/ERP5/Tool/DomainTool.py +++ b/product/ERP5/Tool/DomainTool.py @@ -198,7 +198,8 @@ class DomainTool(BaseTool): predicate_category_table_name_list = [] for relative_url in category_list: category_value = portal_categories.getCategoryValue(relative_url) - base_category_value = category_value.getBaseCategory() + base_category_id = portal_categories.getBaseCategoryId(relative_url) + base_category_value = portal_categories.getCategoryValue(base_category_id) if base_category_value.getId() in preferred_predicate_category_list: table_index = len(predicate_category_query_list) predicate_category_table_name = 'predicate_category_for_domain_tool_%s' % table_index