OdooWiki OCA HUB

Purchase Stock Secondary Unit

purchase_stock_secondary_unit folder_open OCA/purchase-workflow open_in_new
stock License: AGPL-3

This module extends the functionality of stock secondary unit module and purchase_order_secondary_unit to allow copy secondary purchase data to stock move when a purchase order is confirmed.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When a purchase order is confirmed, the secondary unit quantity entered on the purchase order line is copied onto the related stock moves, so warehouse staff see the same secondary unit figures on receipts.

This module links the secondary unit information of a purchase order line to the stock moves generated when the order is confirmed. It is installed automatically when the secondary unit modules for purchase and stock are present.

What it does: - When stock moves are created from a purchase order line, the secondary unit and its quantity are copied onto the move. - If a user changes the secondary unit quantity on a purchase order line, the change is pushed to the related stock move, but only when the move is not yet done or cancelled. - When several stock moves exist for the same line, the difference is applied to the last move so the total secondary quantity stays consistent. - When a purchase order line is created from a procurement (for example from a reordering rule), the secondary unit and quantity are taken from the procurement values.

Where it appears: there is no new menu or screen; the effect is visible on purchase order lines and on the stock moves/receipts generated from them, in the secondary unit fields already provided by the dependent modules.

It touches purchase.order.line and the stock moves it creates. No new reports, emails or scheduled jobs are added.

Models and fields (1)
  • purchase.order.line · extends an existing model

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

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module you need to:

  • Go to a Product \> General Information tab.
  • Create any record in "Secondary unit of measure".
  • Set the conversion factor.
  • Go to Purchase \> Requests for Quotation and create a purchase order with this product.
  • Confirm the purchase order.
  • Go to picking from this purchase order, you will see secondary unit information.

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.