OdooWiki OCA HUB

Scrap Location Filter

scrap_location_filter folder_open OCA/stock-logistics-warehouse open_in_new
Warehouse Management License: AGPL-3

It will filter the location based on the quantity of that product on hand when scrap is created for a certain product.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

When you scrap a product in Odoo, the source location list only shows locations that actually hold that product (and lot/serial number), instead of every location in the warehouse.

This module changes the Scrap screen so that the source location you can pick is limited to places where the product is actually available.

  • On the scrap form (both the normal scrap screen and the scrap pop-up wizard), the location field now takes the selected product and lot/serial number into account.
  • Only locations that have an on-hand quantity for that product (and, if a lot/serial number is chosen, for that specific lot/serial number) are offered.
  • If no location holds the product, the system falls back to the main stock location of the company's warehouse, so the field is never left completely empty.
  • Changing the product clears the previously chosen location and lot/serial number, and changing the lot/serial number clears the location, so you cannot keep an invalid combination.

It touches the scrap document (stock.scrap) and the location list (stock.location). No new menus, reports or scheduled actions are added; the change is visible directly inside the existing Scrap form in the Inventory app.

Depends on

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

Text generated by AI (DeepSeek) from reading the Odoo 14.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

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

terminal Installation and usage

OCA documentation · Odoo 14.0
  • Go to Inventory > Operations > Scrap
  • Create a scrap order and select Location.
  • It will only show locations that have stock on hand.

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.