OdooWiki OCA HUB

Stock Request BOM

stock_request_bom folder_open OCA/stock-logistics-request open_in_new
Warehouse Management License: LGPL-3

This module enhances the stock request functionality by integrating with the Bill of Materials (BOM).

Key Features: - Adds Product BOM and Quantity BOM fields to stock request orders. - Auto-completes stock request lines based on the selected BOM and quantity. - Allows updating and clearing BOM selections.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a Product BOM and Quantity BOM to stock request orders so users can automatically fill the request lines with the components of a bill of materials.

This module extends stock request orders with two new fields: Product BOM and Quantity BOM. On the stock request order form, these fields appear after the picking policy field. The Product BOM field only allows products that have a bill of materials, and the Quantity BOM field defaults to 1.0.

When a user selects a product with a BOM and enters a quantity, the stock request lines are automatically generated from the BOM. The module explodes the BOM recursively, so if a component itself has a sub-BOM, its components are used instead of the sub-assembly. Each generated line copies the warehouse, location, company, requester and expected date from the order.

Business rules: the Quantity BOM must be greater than zero, otherwise a validation error is raised. If no BOM is found for the selected product, an error is shown. Clearing the Product BOM removes all generated lines. Both fields are read-only once the order is no longer in draft state.

The module works with stock.request.order and the BOM models from the manufacturing app. It does not add new menus; it only changes the existing stock request order form.

Depends on

Models and fields (1)
  • stock.request.order · extends an existing modelquantity_bom (Quantity BOM), product_bom_id (Product BOM)

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 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/stock-logistics-request.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Select a Product BOM and enter a Quantity BOM.
  • Stock request lines will auto-fill with BOM components.
  • Adjust quantity BOM as needed.

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.