odoo/o-spreadsheet#7716

Created by BI, Hendrickx Anthony (anhe)

Blocked

label
odoo:master-chart-uniformize_human_readable_formatting-anhe
head
4e5a4a3fae23b6c05ce7c6abcea308487bc3156c
odoo/o-spreadsheet
master #7716 missing r+

[IMP] formatting: unify the formatting with odoo chart views

Task Description

When importing a chart from odoo to a spreadsheet, we check by default the "humanize numbers" option to make big and small numbers readable. Unfortunately, the way we make them "more readable" is not the same as in odoo chart view. This PR aims to change two behaviors :
1. The really big numbers are now shown as scientific notation
2. We reduce the number of digits for decimal parts.

To make sure very small positive numbers are still representable, they are also shown as scientific notation when |number| < 0.01.

Related Task