Commit d3b1577d authored by Yusei Tahara's avatar Yusei Tahara

Until we make a secure good UI for choosing custom script, this should be...

Until we make a secure good UI for choosing custom script, this should be better to be the same as others.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30949 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e4d2c77
......@@ -57,7 +57,7 @@ class RoundingModel(Predicate):
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:
......
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