odoo/o-spreadsheet#7749

Created by fw-bot
Merged at f3be8c0014267a53a28a36cc6ea8462b61eb4c36

Statuses:

label
odoo:19.0-18.0-fix-find-and-replace-specific-range-adrm-489653-fw
head
2b9cad3a86815e42ab60cee3497386a590b12839
merged
1 week ago by BI, Adrien Minne (adrm)
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

Forward-Port-Of: #7747
Forward-Port-Of: #7667