odoo/o-spreadsheet#5201

Created by fw-bot
Merged at a3dfe6d29c8186e407cbd17a064b5f31977a23ae

Statuses:

label
odoo:master-17.0-fix-date-line-chart-dhrp-qmIh-fw
head
8c499f92a9d1790db4ea12bd650a25031289074a
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: #5198
Forward-Port-Of: #5139