Browse Source

[FIX] mis_builder: tweak xlsx number format

pull/189/head
Stéphane Bidoul 9 years ago
parent
commit
39917120e5
  1. 3
      mis_builder/models/mis_report_style.py

3
mis_builder/models/mis_report_style.py

@ -167,8 +167,9 @@ class MisReportKpiStyle(models.Model):
@api.model
def to_xlsx_style(self, props):
num_format = '0.'
num_format = '0'
if props.dp:
num_format += '.'
num_format += '0' * props.dp
if props.prefix:
num_format = u'"{} "{}'.format(props.prefix, num_format)

Loading…
Cancel
Save