OdooWiki OCA HUB

DDMRP Warning

ddmrp_warning folder_open OCA/ddmrp open_in_new
Warehouse Management License: LGPL-3

Adds configuration warnings on stock buffers based on different definitions. This modules include some basic warnings but you can create your own based on your environment.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you define your own warning rules for DDMRP stock buffers and automatically flags buffers that break them, with low, medium or high severity. Warnings appear on the buffer form and in a dedicated report menu.

This module adds a configurable warning system on top of DDMRP stock buffers. You create warning definitions (description, severity, an optional domain to limit which buffers they apply to, and a small Python expression evaluated against each buffer). Four example definitions are installed: spike horizon smaller than DLT (high), quantity multiple bigger than MOQ (medium), minimum procure batch bigger than MOQ (medium) and ADU is zero (low).

Definitions are managed under the DDMRP configuration menu (Warning Definitions), where DDMRP managers can create, edit and archive them; buffer maintainers can only read them. Archiving a definition deletes its existing warnings.

On each stock buffer form a new Warnings tab lists the warnings raised for that buffer, colour-coded by severity, with a Refresh Warnings button. A daily scheduled job recalculates warnings for all buffers, and a With Warnings filter is added to the buffer search. A DDMRP Warnings report menu lists all raised warnings with product, location, severity and company, and can be grouped by buffer, severity or definition.

Warnings are created when the expression returns true and removed when it returns false or the definition no longer applies. Deactivating a buffer also removes its warnings. Warning items are restricted per company.

Depends on

Required by other modules

Menus it adds

Warning DefinitionsDDMRP Warnings
Models and fields (3)
  • stock.buffer · extends an existing modelddmrp_warning_item_ids
  • ddmrp.warning.item · new modelname, severity, buffer_id, company_id, product_id, location_id, warning_definition_id
  • ddmrp.warning.definition · new modelname (Description), active, severity, python_code (Warning Expression), warning_domain (Buffer Applicable Domain), ddmrp_warning_item_ids

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 7 confirmed, 2 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module you can proceed as follows:

  • Use the filter Has Warnings in stock buffers.
  • In a buffer form view go to the Warnings tab and check the active warnings.
  • Fix the issues, and click on Refresh Warnings.

No verified information in OCA: Installation, Configuration.

info

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.