OdooWiki OCA HUB

Sale Order Margin Percent

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

This module shows the margin profit percentage in sales orders.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Adds a margin percentage to sales orders and to each order line, so users can see profitability as a percentage of the untaxed amount instead of only an absolute margin value.

This module extends the margin information already provided by the sale_margin module by adding percentages.

On a sales order, a new Percent field is shown right after the existing margin field. It is displayed as a progress bar and is calculated automatically as the order margin divided by the untaxed total, multiplied by 100. If either value is missing or zero, the percentage shows 0.

On each order line, a new Margin(%) field is added in both the line form and the line list inside the order. It is calculated automatically as the line margin divided by the line subtotal, multiplied by 100, and also shows 0 when the margin or subtotal is zero.

Both values are computed fields: users cannot type them, they update automatically whenever the related margin or amount changes. The module does not add menus, buttons, reports, emails or scheduled actions; it only enriches the existing sales order screens with percentage indicators. It touches the sale.order and sale.order.line models.

Depends on

sale_margin
Models and fields (2)
  • sale.order · extends an existing modelpercent (Percent)
  • sale.order.line · extends an existing modelmargin_percent (Margin(%))

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

Sources · Odoo 12.0

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

terminal Installation and usage

OCA documentation · Odoo 13.0
  • Go to sales and enter in sale order section,
  • Create a sale order then add products,
  • You can get the percent because you have values in the field margin and amount untaxed.

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.