OdooWiki OCA HUB

Sale Report Margin

sale_report_margin folder_open OCA/margin-analysis open_in_new
Sales License: AGPL-3

Adds purchase_price field to sale report. This field comes from the Cost field configured in the products themselves and on the defined inventory valuation method.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a purchase price (cost) column to the Sales analysis report, so users can see the cost of the products sold alongside sales figures.

This module extends the Sales analysis report in Odoo. It adds a new numeric column called purchase price, which shows the cost recorded on the products that were sold.

The value is taken from the cost information already stored on the sales order lines (the cost field managed by the sale margin functionality) and is summed up for each report line. Because it is a report-only field, it is read-only: users cannot type into it, they can only view and group/filter the report by it.

Where it appears: - In the Sales analysis report (the pivot/graph/list view built on sale.report), a new purchase price measure becomes available. - Users can add it as a measure, compare it with sales amounts, and use it to analyse margins per product, customer, salesperson or period.

It does not add menus, buttons, automated actions, emails or scheduled jobs. It only enriches the existing sales reporting model sale.report with one extra field and its aggregation. The module depends on sale_margin, which is what provides the underlying cost information on sales order lines.

Depends on

sale_margin
Models and fields (1)
  • sale.report · extends an existing modelpurchase_price

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

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/margin-analysis.

terminal Installation and usage

OCA documentation · Odoo 19.0

Go to Sales \> Reporting \> Sales and you'll find the new Purchase Price measure.

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.