odoo/o-spreadsheet#4508

Created by fw-bot
Merged at 44931c5253b4d3007b73f34f6a59d013d02a0f5b

Statuses:

label
odoo:saas-17.3-saas-17.2-fix-previous-find-and-replace-mera-xj7h-fw
head
3f0ccc11e33e0ce11e971f4c567d7f073c313350
merged
4 months ago by BI, Pierre Rousseau (pro)
odoo/o-spreadsheet
saas-17.2 #4250
saas-17.3 #4508
master #4511

[FW][FIX] find_and_replace: fix previous command

[FIX] find_and_replace: fix previous command

Problem

The problem occurs when we perform a search using "Find & Replace". In fact, when going backward to a previous occurrence that is located in the previous sheet, we match the first occurrence of that sheet, when actually we need to match on the last occurrence of that sheet.

Solution

This commit solves the issue by checking whether the sheet switch is automatic (coming from the Previous button).

Task: 3839575

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


  1. odoo/enterprise#44075 ↩↩

  2. https://www.postgresql.org/support/versioning/ ↩

  3. https://packages.debian.org/bookworm/postgresql ↩