Skip to content

[19.0][ADD] web_x2many_list_scroll: lists inside forms scroll within a set number of rows - #3672

Open
alan196 wants to merge 1 commit into
OCA:19.0from
Jarsa-dev:19.0-add-web_x2many_list_scroll
Open

alan196 wants to merge 1 commit into
OCA:19.0from
Jarsa-dev:19.0-add-web_x2many_list_scroll

Conversation

@alan196

@alan196 alan196 commented Sep 17, 2026

Copy link
Copy Markdown

New module web_x2many_list_scroll.

A list of lines inside a form (order lines, invoice lines...) stretches the page as it grows: past a screen of rows the column titles and the row of totals are out of sight. With this module the list scrolls by itself within a set number of rows, in both directions, with its header and its totals staying in sight. The pager of the list keeps working as before.

  • Setting in General Settings ▸ Lists in Forms: the visible rows (system parameter web_x2many_list_scroll.rows, 0 = off), read once per session.
  • Per view: options="{'scroll_rows': 15}" on the x2many field wins over the setting; 0 switches it off for that list.
  • The height is the number of rows times the row height and the header height measured on the rendered list, so it follows the font, the density and the device (rows are taller on touch screens).
  • Inside a form Odoo flattens the list header to z-index: 0; the module lifts header and footer above the widgets of the rows rolling under them (tags, badges, toggles), tunable through --o-x2many-list-scroll-zindex.
  • Tests: hoot (setting, per-view override, off with zero, measured heights, sticky header) and Python (parameter to session).

🤖 Generated with Claude Code

https://claude.ai/code/session_01U2vJWgfX8LRMaFnszPEhC5

…number of rows

A list of lines inside a form scrolls by itself within a number of rows set
once in the settings (system parameter web_x2many_list_scroll.rows) or per
field with options="{'scroll_rows': N}", in both directions, with its
header and its totals staying in sight. 0 leaves the list as it is.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U2vJWgfX8LRMaFnszPEhC5
@OCA-git-bot OCA-git-bot added series:19.0 mod:web_x2many_list_scroll Module web_x2many_list_scroll labels Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:web_x2many_list_scroll Module web_x2many_list_scroll series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants