odoo/o-spreadsheet#4584

Created by fw-bot
Merged at 7e988e2b5c678871fa4566a61e1de4f513513d48

Statuses:

label
odoo:saas-17.3-16.0-linear-chart-cumulative-adrm-G57s-fw
head
cb40cfaedda8568d7de577e7b0d44ac525e2be69
merged
2 months ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
16.0 #4568
17.0 #4579
saas-17.1 #4582
saas-17.2 #4583
saas-17.3 #4584
master #4585

[FW][FIX] chart: cumulative not working for linear charts

Description

The cumulative chart option was not working for line charts with a linear/time axis.

This was because the data in the linear charts
runtime was an array of objects {x, y} rather than an array of numbers, and this wasn't properly handled in the cumulative computations.

Task: : 4028957

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo

Forward-Port-Of: #4583
Forward-Port-Of: #4568