Tuesday, September 9, 2025
2 changes · saas-18.4
New functionality added to Odoo
A new shared KPI provider lets Odoo modules publish business metrics in a consistent way. Accounting now uses it to report draft document counts by type, helping future dashboards or reports collect these figures more easily.
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 KPI summary now highlights how many documents are waiting in the Inbox and shows the current status of pending tax return types. This gives teams a quicker overview of outstanding document work and compliance deadlines without opening each area separately.
Original PR description
With this commit, `kpi.provider.get_kpi_summary` will show how many documents are present in the Inbox folder, as well as the status of the `account.return.types` (`late`, `longterm`, `to_do`, `to_submit` and `done`) depending on which account.return are not completed and on their due date. Task-id: 5062431 Forward-Port-Of: odoo/enterprise#93720