Skip to content

[FIX] account_reconcile_oca: keep candidates list page/scroll when selecting a counterpart#1000

Draft
CarlosRoca13 wants to merge 2 commits into
OCA:18.0from
Tecnativa:18.0-FIX-account_reconcile_oca
Draft

[FIX] account_reconcile_oca: keep candidates list page/scroll when selecting a counterpart#1000
CarlosRoca13 wants to merge 2 commits into
OCA:18.0from
Tecnativa:18.0-FIX-account_reconcile_oca

Conversation

@CarlosRoca13

@CarlosRoca13 CarlosRoca13 commented Jun 16, 2026

Copy link
Copy Markdown

The candidates list is rendered inside the reconcile form. Selecting a counterpart updates the parent record, which re-renders the form and passes a new (but value-wise identical) domain to the list. RelationalModel resets the pagination offset to 0 whenever it is reloaded "from above with a domain", so the user was sent back to the first page of candidates (and the right panel scrolled away) on every click.

  • Add ReconcileMoveLineModel, which drops the domain from the reload params when its value hasn't changed, preserving the current page. A real search change still carries a different domain and resets the page as expected.
  • Wire the new model into ReconcileMoveLineView.
  • Preserve the scroll position of the reconcile panel in ReconcileMoveLineController.openRecord.

cc @Tecnativa TT63153

ping @sergio-teruel @carlosdauden

@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-FIX-account_reconcile_oca branch from 4072617 to d45d91d Compare June 16, 2026 10:40
@OCA-git-bot OCA-git-bot added series:18.0 mod:account_reconcile_oca Module account_reconcile_oca labels Jun 16, 2026
@CarlosRoca13 CarlosRoca13 changed the title [18.0] [FIX] account_reconcile_oca: keep candidates list scroll position on select [FIX] account_reconcile_oca: keep candidates list page/scroll when selecting a counterpart Jun 16, 2026
…lecting a counterpart

The candidates list is rendered inside the reconcile form. Selecting a counterpart updates the parent record, which re-renders the form and passes a new (but value-wise identical) domain to the list. RelationalModel resets the pagination offset to 0 whenever it is reloaded "from above with a domain", so the user was sent back to the first page of candidates (and the right panel scrolled away) on every click.

  - Add ReconcileMoveLineModel, which drops the domain from the reload params when its value hasn't changed, preserving the current page. A real search change still carries a different domain and resets the page as expected.
  - Wire the new model into ReconcileMoveLineView.
  - Preserve the scroll position of the reconcile panel in ReconcileMoveLineController.openRecord.
@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-FIX-account_reconcile_oca branch from d45d91d to 2a39e41 Compare June 16, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_reconcile_oca Module account_reconcile_oca series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants