product_packaging_unit_price_calculator
Provide a calculator wizard that derives unit prices from packaging prices and integrates with product, supplier, and pricelist pricing flows.
Key Features
- product.package.price.wizard: Computes a unit price by dividing an entered package price by the selected packaging quantity and writes it back to the related product, supplier cost, or pricelist fixed price.
- product.package.price.wizard: Lists available packagings with their quantities and recalculated total prices, warns when no quantity is set, and offers a unit-price reset option.
- product.template: Adds a Packaging Prices button on the product form to open the calculator against the template’s list price.
- product.product: Allows invoking the calculator from a variant context to recompute its unit list price.
- product.supplierinfo: Adds a Packaging Prices shortcut next to supplier prices to compute supplier unit cost from a packaging price.
- product.pricelist.item: Adds Packaging Prices buttons on fixed-price rules in form and list views to derive the fixed price from a package price.
- product.packaging: Computes a sale price by multiplying the product’s unit list price with the packaging quantity and displays it in the packaging list.