~tfr/openobject-client/tfr-packaging

« back to all changes in this revision

Viewing changes to bin/widget/view/list.py

[MERGE] user locale to server side defined locale

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import common
34
34
import Queue
35
35
from interface import parser_view
 
36
from tools import user_locale_format
36
37
from widget.model.record import ModelRecord
37
38
 
38
39
class field_record(object):
760
761
                        value += float(model.fields_get()[self.children[c][0]].get(model, check_load=False) or 0.0)
761
762
            if self.children[c][5] == 'avg' and length:
762
763
                value = value/length
763
 
            label_str = tools.locale_format('%.' + str(self.children[c][3]) + 'f', value)
 
764
            label_str = user_locale_format.format('%.' + str(self.children[c][3]) + 'f', value)
764
765
            if self.children[c][4]:
765
766
                self.children[c][2].set_markup('<b>%s</b>' % label_str)
766
767
            else: