OdooWiki OCA HUB

Product Packaging Unit Price Calculator

product_packaging_unit_price_calculator folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

This module adds a wizard that allows the user to compute a unit price by selecting a specific product.packaging related to the product and the price of that package. The computation is done based on the quantity qty of product set on the packaging.

The wizard is accessible via buttons located in a few different places in the UI

  • Next to the sale price of the product on the product form
  • Next to the price of a product supplier info form
  • Next to the price of price list item in the tree view
  • Below the fixed price of a price list item

When the wizard is saved the value of the unit price located next to the button is updated by the computed unit price of the wizard.

The sale price of a product.packaging is displayed in the packaging list on the Inventory page of the product form.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a calculator button that turns the price of a whole package into a unit price and writes it back to the product, supplier or price list line. It also shows the sale price of each packaging.

This module helps you work backwards from the price of a full package to the price of a single unit. A "Packaging Prices" button with a calculator icon appears in several places: on the product form next to the sale price, on supplier price lines, on price list rules (both the form and the list), and below the fixed price of a price list rule.

Clicking the button opens a small pop-up window. There you enter the price of the package and choose one of the product's packages. Odoo then divides the package price by the quantity contained in that package and shows the resulting unit price. The window also lists all packages of the product with the total price each one would represent at that unit price.

When you press Save, the calculated unit price is written back to the place you started from: the product's sale price, the supplier's price, or the fixed price of the price list rule. A Reset unit price button reopens the window with the original value. If the chosen package has no quantity set, Odoo shows a warning and refuses to save.

On the packaging list (Inventory tab of the product), a new column shows the sale price of each package, calculated as the unit price multiplied by the package quantity.

Depends on

product
Models and fields (6)
  • product.product · extends an existing model
  • product.template · extends an existing model
  • product.packaging · extends an existing modelsale_price, unit_price, packaging_wizard_price
  • product.supplierinfo · extends an existing model
  • product.pricelist.item · extends an existing model
  • product.package.price.wizard · new modelproduct_id, unit_price, packaging_ids (Product Packages), packaging_price (Package Price), product_tmpl_id, warning_message, current_unit_price, product_variant_ids, selected_packaging_id, product_supplierinfo_id, product_pricelist_item_id

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

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/product-attribute.

terminal Installation and usage

OCA documentation · Odoo 18.0

Click on the Packaging price buttons to use the wizard

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.