Commit 1b4a424b authored by Sebastien Robin's avatar Sebastien Robin Committed by Cédric Le Ninivin

ERP5: remove duplicated code when getting transformation from a resource

parent a82e35cb
......@@ -298,10 +298,6 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
return transformation_list[0].getObject()
return None
method = context._getTypeBasedMethod('getDefaultTransformationValue')
if method is not None:
return method(context)
transformation_list = self.portal_domains.searchPredicateList(context,
portal_type=self.getPortalObject().getPortalTransformationTypeList(),
limit=1)
......
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