summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2018-08-21 15:03:29 +0200
committerMathieu Duckerts-Antoine <dam@odoo.com>2018-09-04 17:37:07 +0200
commitd4b26c3372e568d8a26b98d0aa2af6560be2d6c6 (patch)
treedde7d2023f2cffea493b77a041f84cc2bc22c2dc /addons/web/static/src/xml/base.xml
parent004b6e8b1c8d2d91105594e24fcea548ee756f87 (diff)
[FIX] web: pivot model accept no __count key or null values
The _mergeData function used in pivot view comparison mode was not designed to accept the absence of the __count key or null values for measures in the objects returned by a 'read_group'. The absence of the __count key would result in a traceback and null values for measures into wrong calculations (infinities). One could ask why null values did not cause problem before. The simple reason is that the formatters used to format cell values render a 'null' value like they render a zero. This fix makes explicit that null values have to be considered as zeros and avoid in that way Infinity values when computing variations.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions