DDMRP Buffer calculations are now run with Queue Jobs.
When auto-update of NFP is active, each time the state of a stock move changes, a new computation is triggered, but thanks to identity keys on jobs, only one job at a time is generated for the same buffer.
The .cron_actions method is automatically delayed when the context contains auto_delay_ddmrp_cron_actions=True.
The scheduled action for buffers ADU computation also generates jobs instead of recomputing all the buffers at once.
The ._calc_adu method is automatically delayed when the context contains auto_delay_ddmrp_calc_adu=True.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Moves DDMRP buffer recalculations and average daily usage (ADU) computations into background queue jobs, so stock operations no longer wait for them and each buffer is only recalculated once at a time.
This module changes how DDMRP buffer calculations are executed in Odoo: instead of running immediately during stock operations, they are sent to the background job queue.
What changes for users: - When a stock move changes and the automatic update of the Net Flow Position is active, the buffer recalculation is no longer done on the spot; it is queued as a background job. - The scheduled actions that recalculate buffers and their average daily usage (ADU) also create jobs instead of processing every buffer at once. - Because each job carries an identity key, only one calculation job can exist at a time for the same buffer, avoiding duplicate work when several stock moves happen quickly.
Where it appears:
- There is no new menu or screen. The effect is visible in the background jobs queue, where jobs appear under a dedicated ddmrp channel with a description such as "DDMRP Buffer calculation" or "DDMRP Buffer ADU calculation".
Business rules and automatic behaviour: - Buffer recalculation is triggered automatically when stock moves update the Net Flow Position, and when manufacturing rules are run. - The buffer recalculation and ADU calculation methods are automatically delayed when the corresponding context flag is set.
Odoo areas touched: DDMRP buffers (stock.buffer), stock moves (stock.move) and stock rules (stock.rule).
Required by other modules
Models and fields (1)
- stock.buffer · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/ddmrp.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.