When a reason code has workcenters assigned and the scrap has a workorder, an additional filter is added to allow only select reason codes with the same workcenter as the workorder .
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you restrict each scrap reason code to specific work centers, so only relevant reasons appear when scrapping from a manufacturing work order.
This module adds a new field, Allowed Work Centers, to scrap reason codes. On the reason code form and list you can pick one or more work centers that are allowed to use that reason. If you leave the field empty, the reason code stays available for every work center.
When a scrap is created from a manufacturing work order, Odoo automatically filters the available reason codes: only codes that either have no work center restriction or that include the work order's work center are offered. The same filtering already applies to product categories, and both rules work together.
If someone tries to save a scrap with a reason code that is not allowed for the selected product category or work center, Odoo blocks it with a validation message: "The selected reason code is not allowed for this product category or work center".
The module touches the scrap reason code configuration and the scrap screen used in manufacturing. It does not add new menus; the new field appears inside the existing scrap reason code views.
Depends on
Models and fields (2)
- stock.scrap · extends an existing model
- scrap.reason.code · extends an existing modelmrp_workcenter_ids (Allowed Work Centers)
Text generated by AI (DeepSeek) from reading the Odoo 18.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/manufacture.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0Go to Inventory \> Configuration \> Scrap Reason Codes
Create a required scrap reason code and assign work centers.
No verified information in OCA: Installation, Usage.
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.