odoo/o-spreadsheet#5200

Created by fw-bot
Merged at bb046c5db8ba0c45905a6b843e0453e03aafbb57

Statuses:

label
odoo:18.0-17.0-fix-date-line-chart-dhrp-mXlm-fw
head
5db41fec65f52101509ae41157d8f4ed6a828245
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