Browse Source

[IMP] mis_builder: remove old api remnant

pull/86/head
Stéphane Bidoul 10 years ago
parent
commit
009dbafcca
  1. 6
      mis_builder/models/mis_builder.py

6
mis_builder/models/mis_builder.py

@ -206,12 +206,10 @@ class MisReportKpi(models.Model):
divider_label = ''
# format number following user language
value = round(value / float(divider or 1), dp) or 0
value = self.env.registry['res.lang'].format(
self.env.cr, self.env.uid, [lang_id],
value = self.env['res.lang'].browse(lang_id).format(
'%%%s.%df' % (sign, dp),
value,
grouping=True,
context=self.env.context)
grouping=True)
value = u'%s\N{NO-BREAK SPACE}%s%s' % \
(value, divider_label, suffix or '')
value = value.replace('-', u'\N{NON-BREAKING HYPHEN}')

Loading…
Cancel
Save