DDMRP Warning as job
ddmrp_warning_as_job · OCA/ddmrp
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Description
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 <stock.buffer>._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.
Dependencies
- Odoo dependencies
- Python dependencies
- bokeh==3.10.1, openupgradelib, requests
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (1)-
cron_generate_ddmrp_warnings(self, automatic=False)
Loading…
Loading…
Loading…