Change 1 of 20
Base unit price on product label
Display the product reference price on product labels.
Official Odoo 20 release note
In plain words
When the "Product Reference Price" option is on and a product has a base unit (for example 0.33 L), printed product labels now show the price per base unit (for example $ 6.67 /L) under the normal price.
Where to find it
- Enable Product Reference Price (Point of Sale settings).
- Set a base unit quantity and unit on a product.
- Print its labels from the product (Print Labels).
For users
Shelf labels can show the reference price per unit (per L, per kg).
For developers
product.label.layout._prepare_label_values() adds secondary_value / secondary_value_suffix when product.group_show_uom_price is enabled. The base unit model moved from website_sale to product (product.base.unit).
Upgrading from Odoo 19
The base unit model moved to the product module; code referencing the website_sale model needs updating.
- The label report was rendered as HTML and zoomed so the small label is readable.
- Demo data: Coca-Cola was given a base unit of 0.33 L and the Product Reference Price option was enabled.
