From c80ed622ab0c77803c2e6db4714e4d4be1fb3336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Fri, 22 Jan 2010 17:29:55 +0000 Subject: [PATCH] - 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 --- product/ERP5/Document/Resource.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/product/ERP5/Document/Resource.py b/product/ERP5/Document/Resource.py index b6e7158f70..4757fd0d0f 100644 --- a/product/ERP5/Document/Resource.py +++ b/product/ERP5/Document/Resource.py @@ -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() -- 2.30.9