OdooWiki OCA HUB

Window actions for client side paging

web_ir_actions_act_window_page folder_open OCA/web open_in_new
Technical License: AGPL-3

This addon allows a developer to return the following action types:

{'type': 'ir.actions.act_window.page.next'}

or:

{'type': 'ir.actions.act_window.page.prev'}

which trigger the form's controller to page into the requested direction on the client side.

A use case could be the case of a validation flow. As a developer, you set up a tree view with a domain on records to be validated. The user opens the first record in a form view and validates the record. The validation method returns the 'next' action type so that the browser window of the user is presented with the next record in the form view.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets developers make a form view button jump to the previous or next record, or switch to the list view, without reloading the page. Useful for validation flows where users move record by record.

This is a technical module for developers. It adds three new action types that a server action or a Python method can return: one to go to the previous record, one to go to the next record, and one to switch to the list view. When such an action is returned, the form view's pager moves in the requested direction on the client side, so the user sees the next or previous record in the same form without a full page reload.

A typical use case is a validation flow: you open a list of records to validate, open the first one in a form, validate it, and the validation method returns the "next" action so the user is automatically taken to the next record.

The module also patches the pager component so it listens for navigation events and performs the move. It includes a demo that adds two buttons, "Previous Partner" and "Next Partner", on the partner form (res.partner) to illustrate and test the behaviour. These buttons are only for demonstration and testing; developers are expected to return the action types from their own code instead.

The module depends only on web and does not add menus or business rules of its own.

Depends on

web
Models and fields (3)
  • ir.actions.act_window.page.list · new model
  • ir.actions.act_window.page.next · new model
  • ir.actions.act_window.page.prev · new model

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 16.0

See the 'Previous Partner' and 'Next Partner' buttons that this module's demo data adds to the partner form view.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.