This module makes the scheduled action DDMRP Buffer Warning calculation (provided by ddmrp_warning) enqueue one queue job per stock buffer instead of computing the warnings of all the buffers in a single transaction. The jobs run in the root.ddmrp channel (provided by ddmrp_cron_actions_as_job) and, thanks to identity keys, only one pending job exists at a time for the same buffer.
Technically, the ._generate_ddmrp_warnings method is automatically delayed when the context contains auto_delay_ddmrp_generate_ddmrp_warnings=True. The scheduled action sets this key; the Refresh Warnings button of the buffer form does not, so a manual refresh is still computed immediately.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0When the scheduled DDMRP buffer warning calculation runs, it now creates one background job per stock buffer instead of computing everything in a single transaction, so warnings are refreshed in smaller, safer batches.
This module changes how the automatic DDMRP buffer warning calculation is executed. Instead of recalculating the warnings of all stock buffers in one long transaction, the scheduled action now queues one background job per buffer, so the work is spread out and a single buffer's calculation does not block the rest.
Where it appears:
- It works behind the scenes on the scheduled action that generates DDMRP warnings; there is no new menu or screen.
- The jobs run in the dedicated DDMRP job channel provided by the companion module ddmrp_cron_actions_as_job.
Business rules and automatic behaviour: - Only the scheduled (automatic) run is turned into jobs. When a user clicks the manual refresh of warnings on a buffer, the calculation still happens immediately. - Each buffer gets its own job, and duplicate pending jobs for the same buffer are avoided, so the same buffer is not queued several times at once. - Jobs are given a defined priority and a description naming the buffer, which helps when reviewing the job queue.
The module touches the stock.buffer model and its warning generation method _generate_ddmrp_warnings. It relies on the queue job system to execute the calculations asynchronously.
Depends on
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: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/ddmrp.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0- The scheduled action DDMRP Buffer Warning calculation runs as usual (daily by default) and creates a job named DDMRP Warning calculation (buffer name) for every buffer.
- Go to Job Queue \> Queue \> Jobs to follow these jobs. When a job is done, the warnings of its buffer are up to date.
- Check the results as described in ddmrp_warning: use the With Warnings filter on the stock buffers, or open the Warnings tab of a buffer.
No verified information in OCA: Installation, Configuration.
Installation 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.