OdooWiki OCA HUB

Purchase Stock Operating Unit

purchase_stock_operating_unit folder_open OCA/operating-unit open_in_new
Purchase Management License: AGPL-3

This module is used to integrated between Purchase and Stock to send Operating Unit in the warehouse that has been selected from Deliver To to Stock Picking.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Keeps the operating unit consistent between purchase orders and the warehouse they deliver to, and copies it onto the resulting stock receipt. Users get automatic matching and a clear error if the two differ.

This module links the operating unit chosen on a purchase order with the warehouse used for the delivery, so the receipt that is created carries the same operating unit.

What users see and do: - On a purchase order, the Operating Unit and Deliver To fields now work together: choosing an operating unit automatically selects the matching incoming warehouse operation type, and choosing a warehouse operation type automatically fills in that warehouse's operating unit. - If the operating unit on the purchase order and the one on the selected warehouse do not match, Odoo blocks saving with a configuration error message telling the user they must be the same.

Automatic behaviour: - When a receipt (stock picking) is generated from a purchase order, the operating unit of the purchase order is copied onto it. - When a purchase order is created automatically by a reordering rule, the operating unit of that rule is carried over to the new purchase order.

Areas touched: - Purchase orders (purchase.order), including their delivery operation type and operating unit fields. - Reordering rules (stock.rule) used for automated purchasing. - Stock receipts created from purchases, which inherit the operating unit.

No new menus or reports are added; the change is visible directly on the purchase order form and on the generated receipts.

Models and fields (2)
  • stock.rule · extends an existing model
  • purchase.order · extends an existing modelpicking_type_id, operating_unit_id

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 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/operating-unit.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Create a purchase order
  • Select Deliver To that have operating unit in warehouse
  • Confirm purchase order
  • you should have your operating unit on your stock picking

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.