[Erp5-report] r30949 - /erp5/trunk/products/ERP5/Document/RoundingModel.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 1 03:38:40 CET 2009


Author: yusei
Date: Tue Dec  1 03:38:40 2009
New Revision: 30949

URL: http://svn.erp5.org?rev=30949&view=rev
Log:
Until we make a secure good UI for choosing custom script, this should be better to be the same as others.

Modified:
    erp5/trunk/products/ERP5/Document/RoundingModel.py

Modified: erp5/trunk/products/ERP5/Document/RoundingModel.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/RoundingModel.py?rev=30949&r1=30948&r2=30949&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/RoundingModel.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/RoundingModel.py [utf8] Tue Dec  1 03:38:40 2009
@@ -57,7 +57,7 @@
     Return rounded value.
     """
     if self.getRoundingMethodId() is not None:
-      rounding_method = getattr(self, 'RoundingModel_%s' % self.getRoundingMethodId(), None)
+      rounding_method = getattr(self, self.getRoundingMethodId(), None)
       if rounding_method is None:
         raise ValueError, 'Rounding method (%s) was not found.'
     else:




More information about the Erp5-report mailing list