OdooWiki OCA HUB

Scrap Reason Code

scrap_reason_code folder_open OCA/stock-logistics-workflow open_in_new
Warehouse Management License: AGPL-3

Adds a reason code for scrapping operations and an interface for the user to create scrap codes

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you define scrap reason codes with an optional default scrap location and allowed product categories, then pick a reason code when scrapping products in Odoo.

This module adds a new configuration object called a reason code, used to explain why stock is scrapped.

  • Warehouse managers create reason codes under Inventory > Configuration > Scrap Reason Codes. Each code has a name, a description, an optional scrap location and an optional list of allowed product categories. If no category is set, the code can be used for any product.
  • On the scrap form and scrap list, a Reason Code field is added next to the product. Only codes whose allowed categories match the product's category (or codes with no category restriction) can be selected; choosing a code that is not allowed raises a validation error.
  • Selecting a reason code automatically fills the scrap location with the location defined on that code, both on screen and when the scrap is saved.
  • The reason code is copied onto the related stock move, and it is shown on the stock move form in a Reason Code group that only appears for moves linked to a scrap.
  • The standard scrap reason tags field is hidden, so the new reason code replaces it.
  • Access is controlled by groups: regular users can read codes, stock users can also modify them, and only stock managers can create or delete them.

Depends on

stock

Menus it adds

menu_view_scrap_reason_code_form
Models and fields (3)
  • stock.move · extends an existing modelreason_code_id
  • stock.scrap · extends an existing modelreason_code_id, scrap_location_id, allowed_reason_code_ids
  • scrap.reason.code · new modelname (Code), description, location_id (Scrap Location), product_category_ids (Allowed Product Categories)

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: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/stock-logistics-warehouse.

terminal Installation and usage

OCA documentation · Odoo 19.0

Go to Inventory \> Configuration \> Scrap Reason Codes

Create a required scrap reason code and provide scrap location.

  • Go to Inventory \> Operations \> Scrap
  • Create a scarp order and select reason code.
  • A scrap location will be readonly and auto fill based on selected reason code.

No verified information in OCA: Installation.

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.