[FIX] forgot to actually replace the function call by the new one.

bzr revid: vmt@openerp.com-20110516090908-umx4o2ar2w2igiid
This commit is contained in:
Vo Minh Thu
2011-05-16 11:09:08 +02:00
parent 12144cfc2b
commit 584fc24bb3
+2 -5
View File
@@ -198,7 +198,7 @@ class lang(osv.osv):
parts = formatted.split('.')
if grouping:
parts[0], seps = original_group(parts[0], eval_lang_grouping, thousands_sep)
parts[0], seps = intersperse(parts[0], eval_lang_grouping, thousands_sep)
formatted = decimal_point.join(parts)
while seps:
@@ -208,7 +208,7 @@ class lang(osv.osv):
seps -= 1
elif percent[-1] in 'diu':
if grouping:
formatted = original_group(formatted, eval_lang_grouping, thousands_sep)[0]
formatted = intersperse(formatted, eval_lang_grouping, thousands_sep)[0]
return formatted
@@ -218,9 +218,6 @@ class lang(osv.osv):
lang()
# TODO intersperse is more general than original_group, maybe
# this is a problem and the loop should really stops on non-digits.
def original_group(s, grouping, thousands_sep=''):
if not grouping: