Sale Purchase Secondary Unit
This module extends the functionality of sale_order_secondary_unit module and purchase_order_secondary_unit to allow copy secondary uom from sale orders to purchase orders whena sale order is confirmed.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0When a sale order is confirmed, the secondary unit of measure chosen on the sale line is carried over to the generated purchase order line, so buyers see the same secondary quantity and unit.
This module links the secondary unit of measure (a second way of counting a product, for example boxes next to units) used on sales with the purchasing side.
- When a sale order is confirmed and Odoo creates a purchase order to replenish the product, the secondary unit and its quantity from the sale line are copied onto the purchase order line.
- Purchase order lines that come from sale lines with different secondary units are not merged together, so quantities stay correct per unit.
- When several procurements are merged into one purchase line, the secondary quantities are added up.
- If a sale order is cancelled, its lines are remembered so their secondary quantities are not counted again when purchase lines are updated.
It works behind the scenes on sale.order, purchase.order.line and stock.rule; there is no new menu or screen. Users simply see the secondary unit and quantity already filled in on the purchase order created from a confirmed sale.
Depends on
Models and fields (3)
- sale.order · extends an existing model
- stock.rule · extends an existing model
- purchase.order.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 15.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-03Confirmation status: 1 confirmed, 8 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 15.0Usage
Source · Odoo 15.0To 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.
- Set a product with a buy rule + mto rule
- Set vendors on product
- Go to Sales > orders and create a sale order with this product and any second unit.
- Confirm the sale order.
- Go to purchaser order created and you will see the second unit in purchase order line.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.