OdooWiki OCA HUB

Stock Scrap Cancel

stock_scrap_cancel folder_open OCA/stock-logistics-workflow open_in_new
Stock License: AGPL-3

This module adds the cancel status to the scraps and allows the canceled ones to be converted into a draft.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a Cancelled status to stock scraps and lets you cancel a validated scrap or turn a cancelled scrap back into a draft.

This module extends the standard scrap screen in Odoo's Inventory app. A scrap record now has an extra status, Cancelled, in addition to the usual draft, done and other states.

On the scrap form, two new buttons appear depending on the current status: - Cancel: visible only when the scrap is in the done state. Pressing it cancels the scrap, clears the related stock movements and returns the record to the Cancelled status. - Set to Draft: visible only when the scrap is Cancelled. Pressing it puts the scrap back into draft so it can be edited or validated again.

When a scrap is cancelled, the module also removes the associated stock moves and resets their quantities, so the cancelled scrap no longer affects inventory. The scrap quantity is kept for reference and the completion date is cleared.

It only touches the stock.scrap model and its form view; no new menus, reports or scheduled actions are added.

Depends on

stock
Models and fields (1)
  • stock.scrap · extends an existing modelstate

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

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

Sources · Odoo 13.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Go to Inventory \> Operations \> Scrap
  • Create a record and set any product and set quantity to 1.
  • Go to "Validate" button and confirm.
  • Go to "Cancel" button.
  • The scrap is canceled and the stock move has been canceled and deleted.
  • Go to "Set to Draft" button.
  • The scrap is in draft state.

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.