odoo/o-spreadsheet#7373

Created by fw-bot
Merged at 94f784ff1749b4984f6a35ad352d9fde0e3a4fa2

Statuses:

label
odoo:saas-18.4-saas-18.3-half-versions-lul-472691-fw
head
1822e18cdf89f596aace4c7e92049684947c546a
merged
2 days ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
saas-18.3 #7367
saas-18.4 #7373
19.0 #7374
master #7375

[FIX] upgrade: half-versions are missing in mapping

Commit 4d671ebd47a05 didn't add intermediary versions 12.5 and 14.5 in the mapping.

As a result, data.version was transformed to undefined and the data would go through every upgrade steps from the very begining, which could obviously lead to crashes and corrupted data.

task-5116401

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

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: #7367