OdooWiki OCA HUB

Sale Stock Secondary Unit

sale_stock_secondary_unit folder_open OCA/sale-workflow open_in_new
stock License: AGPL-3

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

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When a sale order is confirmed, the secondary unit and quantity chosen on the sale order line are copied onto the related stock moves, so warehouse documents show the same secondary unit information as the sale.

This module links the secondary unit information used on sales with the stock operations that follow. It is installed automatically when both the sale secondary unit and stock secondary unit features are present.

What it changes: - When a sale order line is confirmed, the secondary unit and its quantity are passed to the generated stock moves, so picking and delivery documents keep the same secondary unit data as the sale. - The stock rule that creates the moves is extended so that the secondary unit and secondary unit quantity fields are carried over to the created moves. - If the secondary unit quantity on a confirmed sale order line is changed, the difference is calculated and used when the related procurement is updated, so the stock side stays aligned with the new quantity.

Where it appears: there is no new menu or screen; the effect is visible on existing sale order lines and on the stock moves and transfers generated from them.

It touches the sale order line, stock move and stock rule records. No new fields, reports, emails or scheduled actions are added by this module.

Models and fields (3)
  • stock.move · extends an existing model
  • stock.rule · extends an existing model
  • sale.order.line · extends an existing model

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

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.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 Sale \> Quotation and create a sale order with this product.
  • Confirm the sale order.
  • Go to picking from this sale 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.