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