Tuesday, September 9, 2025
2 changes · 17.0
New functionality added to Odoo
This update adds a shared way for Odoo modules to provide business KPI summaries. Accounting now contributes draft document counts by type, making it easier for future dashboards or setup flows to display consistent performance indicators.
Original PR description
This commit introduces a new abstract model `kpi.provider` that allows different modules to contribute their Key Performance Indicators (KPIs) in a modular and extensible way. The `kpi.provider` model defines a base structure for KPI reporting and includes a `get_kpis_summary` method that should be overridden in inheriting models. This method is responsible for returning a list of KPI data specific to the module. KPI data are identified by a unique name and a type allowing for the caller to know how to present the corresponding value. The `account` module inherits from `kpi.provider` to include the amount of draft `account.move` for each `move_type`. Task-id: 5062431 Forward-Port-Of: odoo/odoo#225153
The Documents app now includes the number of items in the Inbox folder in its KPI summary. This gives users a quick business overview of pending documents that may need attention, without opening the folder separately.
Original PR description
With this commit, `kpi.provider.get_kpi_summary` will show how many documents are present in the Inbox folder. Task-id: 5062431 Forward-Port-Of: odoo/enterprise#93720