OdooWiki OCA HUB

Purchase Packaging Default

purchase_packaging_default folder_open OCA/purchase-workflow open_in_new
Purchase Management License: AGPL-3

Allows you to set a default packaging on the order line using the first packaging defined in the configuration of the respective product Default packaging quantity is then set based on purchase order line quantity divided by product packaging quantity. Packaging quantity is rounded up as we sell it by units. For example: We won't sell 0.5 Boxes or 1.5 Pallets.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a company setting that automatically fills in a default packaging on purchase order lines, using the first packaging marked for purchase in the product configuration, and rounds the packaging quantity up to whole units.

This module adds an option in the Purchase settings that, once enabled, changes how purchase order lines behave.

When the option is switched on, each purchase order line automatically picks the first packaging found in the product's configuration that is flagged for purchase. The packaging quantity is then calculated from the ordered quantity divided by the packaging size, and always rounded up, so you never get half boxes or one-and-a-half pallets.

Where it appears: - A new checkbox in the Purchase settings screen, under the purchase settings block, labelled to assign the first packaging found in product configuration to purchase order lines. - The setting is stored per company, so different companies can behave differently.

The module touches the purchase order line, the company settings and the settings screen. It also adjusts the standard packaging search so that, when the default is applied, an existing packaging choice is not overwritten by Odoo's usual automatic selection.

No new menus, reports or scheduled actions are added. The behaviour is purely automatic on purchase order lines once the setting is enabled.

Depends on

purchase
Models and fields (3)
  • res.company · extends an existing modelpurchase_packaging_default_enabled
  • purchase.order.line · extends an existing model
  • res.config.settings · extends an existing modelpurchase_packaging_default_enabled

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

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.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.