[Erp5-report] r31925 luke - /erp5/trunk/products/ERP5/Document/Resource.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jan 22 18:29:55 CET 2010
Author: luke
Date: Fri Jan 22 18:29:55 2010
New Revision: 31925
URL: http://svn.erp5.org?rev=31925&view=rev
Log:
- revert 31922 as it was replacing one hardcoding with another
Modified:
erp5/trunk/products/ERP5/Document/Resource.py
Modified: erp5/trunk/products/ERP5/Document/Resource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Resource.py?rev=31925&r1=31924&r2=31925&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Resource.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Resource.py [utf8] Fri Jan 22 18:29:55 2010
@@ -855,10 +855,7 @@
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()
More information about the Erp5-report
mailing list