Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 177 |
Technical Name |
lazy_information |
License | LGPL-3 |
Key Features
This module enhances the performance of Odoo forms by introducing a dynamic loading mechanism for individual pages within a form. Typically, Odoo loads all the data across all pages when a form is opened, which can significantly increase load times, especially when external APIs are involved.
The module creates a new node type that ensures data is only loaded and rendered when a specific page is selected. This reduces the initial form load time and improves the overall user experience. Additionally, the module allows flexible customization of the display using QWeb templates, providing full control over how and when the data is presented.
- Improves form load times by loading data on-demand.
- Efficient handling of external API calls by deferring them until necessary.
- Supports custom QWeb templates for flexible and dynamic content rendering.
This solution is particularly useful for forms with multiple tabs/pages that require heavy data processing or API integrations.
Review

Data is only loaded when the user clicks on the page with lazy loading.

After the data is loaded, the QWeb template will be rendered with the retrieved data.

In case of an error during data retrieval, an error message will be returned.
Note
The example above has been disabled in the source code to prevent errors during installation. If you have a simple and clear example, you should enable it in the following files: __manifest__.py and __init__.py within the models folder. Please refer to the README.md file for more details. If you need further assistance or have any questions, feel free to contact me. I am always available to help if you need it.
Please log in to comment on this module