odoo/o-spreadsheet#5196

Created by fw-bot
Merged at 31a9ad66425263f050027879c09a6348b0a2b237

Statuses:

label
odoo:saas-17.2-17.0-fix-date-line-chart-dhrp-M_B3-fw
head
1090693b5038f855f7520988716ba48f52952a5a
merged
2 weeks ago by BI, Dhrutik Patel (dhrp)
odoo/o-spreadsheet
17.0 #5139
saas-17.2 #5196
saas-17.4 #5198
18.0 #5200
master #5201

[FW][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

Forward-Port-Of: #5139