|
@ -196,7 +196,8 @@ class mis_report_kpi(orm.Model): |
|
|
kpi.divider, kpi.dp, |
|
|
kpi.divider, kpi.dp, |
|
|
kpi.suffix, sign='+', |
|
|
kpi.suffix, sign='+', |
|
|
context=context) |
|
|
context=context) |
|
|
elif kpi.compare_method == 'pct' and base_value != 0: |
|
|
|
|
|
|
|
|
elif kpi.compare_method == 'pct': |
|
|
|
|
|
if round(base_value, kpi.dp) != 0: |
|
|
return self._render_num(cr, uid, lang_id, |
|
|
return self._render_num(cr, uid, lang_id, |
|
|
value / base_value - 1, |
|
|
value / base_value - 1, |
|
|
0.01, kpi.dp, |
|
|
0.01, kpi.dp, |
|
|