Commit fba5767e authored by Sebastien Robin's avatar Sebastien Robin

ERP5: remove duplicated code when getting transformation from a resource

parent 63cd818f
......@@ -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