Commit d7aa0ece authored by Rafael Monnerat's avatar Rafael Monnerat

Added Support to aquisition when is check for the right Domain.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15177 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aaaaed33
......@@ -1312,12 +1312,13 @@ class BasicStructure:
new_object_list = []
if domain_obj.getPortalType() == 'Domain':
category_obj = domain_obj.getMembershipCriterionCategory()
membership_base_category = domain_obj.getMembershipCriterionBaseCategory()
if (category_obj is not None) and (membership_base_category is not None):
category_value = (membership_base_category + '/' + category_obj.getRelativeUrl())
for selected_object in object_list:
if category_value in selected_object.getCategoriesList():
new_object_list.append(selected_object)
base_category_list = domain_obj.getMembershipCriterionBaseCategoryList()
for bc in base_category_list:
if (category_obj is not None) and (bc is not None):
category_value = category_obj.getRelativeUrl()
for s_obj in object_list:
if s_obj._getDefaultAcquiredCategoryMembership(bc) == category_value:
new_object_list.append(s_obj)
object_list = new_object_list
if exception_uid_list not in ([],None) :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment