Commit c80ed622 authored by Łukasz Nowak's avatar Łukasz Nowak

- revert 31922 as it was replacing one hardcoding with another


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31925 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 808527c9
......@@ -855,10 +855,7 @@ class Resource(XMLMatrix, Variated):
def _getGlobalQuantityUnitDefinitionDict(self):
# XXX this info could be cached, as it is the same for all Resources
result = {}
module = getattr(self.getPortalObject(),
'quantity_unit_conversion_module', None)
if module is None:
return result
module = self.getPortalObject().quantity_unit_conversion_module
for definition_list in module.objectValues(portal_type= \
'Quantity Unit Conversion Group'):
standard_quantity_unit_uid = definition_list.getQuantityUnitUid()
......
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