Window actions for client side paging

Allows a developer to trigger a pager to show the previous or next next record in the form view

Technical Name:
web_ir_actions_act_window_page
License:
Author:
Therp BV
Website:
  • Odoo Version

License: AGPL-3

Client side paging

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.

Usage

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

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Do not contact contributors directly about support or help with technical issues.

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.