mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
15 lines
425 B
JavaScript
15 lines
425 B
JavaScript
/* Copyright 2022 Tecnativa - Carlos Roca
|
|
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) */
|
|
|
|
import {PivotRenderer} from "@web/views/pivot/pivot_renderer";
|
|
import {patch} from "@web/core/utils/patch";
|
|
|
|
patch(PivotRenderer.prototype, {
|
|
getFormattedValue(cell) {
|
|
if (cell.value === Infinity) {
|
|
return "-";
|
|
}
|
|
return super.getFormattedValue(...arguments);
|
|
},
|
|
});
|