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).
[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
Forward-Port-Of: odoo/o-spreadsheet#4250