Commit 2475524b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use the portal object instead of self to acquire portal_domains and getPortalSupplyPathTypeList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35542 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eade8e70
......@@ -679,9 +679,10 @@ class Resource(XMLMatrix, Variated):
new_category_list += (resource_category, )
# Generate the predicate mapped value
# to get some price values.
domain_tool = getToolByName(self,'portal_domains')
portal = self.getPortalObject()
domain_tool = getToolByName(portal, 'portal_domains')
if supply_path_type is None:
portal_type_list = self.getPortalSupplyPathTypeList()
portal_type_list = portal.getPortalSupplyPathTypeList()
elif isinstance(supply_path_type, (list, tuple)):
portal_type_list = supply_path_type
else:
......
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