odoo/o-spreadsheet#7667

Created by BI, Adrien Minne (adrm)
Merged at 4080aaea2c141f8a8e05144ef0b4a9bc2a5a7412

Statuses:

label
odoo:18.0-fix-find-and-replace-specific-range-adrm
head
058034c5c882290e33c41b69ae2ab08a52d21d62
merged
2 weeks ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
18.0 #7667
saas-18.2 #7737
saas-18.3 #7747
saas-18.4 #7748
19.0 #7749
saas-19.1 #7750
master #7754

[FIX] f&r: the searched range should follow the active sheet

Description

When searching a value in a specific range in the Find & Replace panel, the range should be updated when changing the active sheet.

We actually had a test for this behavior, but the test was skipped 2 years ago during a refactoring, and never fixed.

Task: 5423885

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