odoo/o-spreadsheet#5139

Created by BI, Dhrutik Patel (dhrp)
Merged at 06befef2af1fbc3b96c7999c4e91b7916b4479de

Statuses:

label
odoo:17.0-fix-date-line-chart-dhrp
head
5000923131a94c4e62152498c13a0f72817b4c7b
merged
2 weeks ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
17.0 #5139
saas-17.2 #5196
saas-17.4 #5198
18.0 #5200
master #5201

[FIX] chart: date line chart

Description:

When creating a line chart with date labels, if 'Use row X as headers' is enabled, the first cell is empty. Currently, we're checking the format of this empty cell to determine if the labels are dates.

Task: 4268977

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