OdooWiki OCA HUB

Product Pricelist Margin

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

This module shows the product's cost and margin from the pricelists. The margin is calculated as the difference between the price and the cost, expressed as a percentage of the price. The price is based on the computation applied from the current pricelist item. This allows the user to make price simulations while editing the pricelist item.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Shows the product cost and the resulting margin (amount and percentage) directly on pricelist rules, so you can see profitability while setting prices.

This module adds cost and margin information to pricelist rules in Odoo. When you edit a pricelist, each rule line now shows the product's cost, the margin amount and the margin percentage, calculated from the price that the rule produces.

  • The margin is the price excluding taxes minus the cost, and the margin percentage is that margin divided by the price excluding taxes, rounded to the product unit of measure precision.
  • The cost comes from the product's standard price, converted into the pricelist currency.
  • The calculation only applies to rules that target a specific product or product variant; for other rule types the margin is shown as zero.
  • If the computed price is zero, the margin is also zero.

The extra columns appear in the pricelist rule list (both the standard list and the one opened from a product), and in the rule form view, where they are only visible for product-specific rules. They are also available as optional columns in the pricelist form's rule list. This lets you simulate prices and immediately see the impact on margin while editing a rule.

Depends on

account
Models and fields (1)
  • product.pricelist.item · extends an existing modelcost, margin, margin_percent (Margin (%))

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 18.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Go to "Sale > Products > Pricelists"
  • Open a pricelist form
  • There are 3 new columns on the "Price rules" list.

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.