OdooWiki OCA HUB

Purchase Order Line Packaging Quantity

purchase_order_line_packaging_qty folder_open OCA/purchase-workflow open_in_new
Warehouse Management License: AGPL-3

This module adds a "Package quantity" field on purchase order line in order to define a quantity according to the selected "Package".

Inspired from sale_order_line_packaging_qty module.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Adds a Package and Package quantity field to purchase order lines, so buyers can order products by packaging (e.g. boxes, pallets) instead of individual units.

This module extends purchase order lines with two new fields: product_packaging (Package) and product_packaging_qty (Package quantity). Both fields are only visible to users who have the product packaging setting enabled.

On a purchase order line, once a product is chosen, the user can select a package. Selecting a package automatically sets the package quantity to 1 and recalculates the ordered quantity to match the package size. Changing the package quantity recalculates the total ordered quantity, and changing the ordered quantity recalculates the package quantity.

Business rules are enforced: - If the ordered quantity is not a multiple of the package size, a warning message appears suggesting the nearest valid quantity. - You cannot set a package quantity without first selecting a package. - You cannot select a package whose quantity is zero.

When purchase order lines are generated automatically from procurement (for example from a sales order or stock reordering), the package from the originating document is carried over to the purchase order line.

The fields appear in both the purchase order form and the order lines list, placed just before the ordered quantity column.

Depends on

purchase_stock
Models and fields (1)
  • purchase.order.line · extends an existing modelproduct_packaging (Package), product_packaging_qty (Package quantity)

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

Sources · Odoo 12.0

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

terminal Installation and usage

No verified information

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.

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.