| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Invoicing (account) • Sales (sale_management) • Discuss (mail) |
| Lines of code | 266 |
| Technical Name |
codeerts_product_margin |
| License | LGPL-3 |
| Website | https://www.codeerts.com |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Invoicing (account) • Sales (sale_management) • Discuss (mail) |
| Lines of code | 266 |
| Technical Name |
codeerts_product_margin |
| License | LGPL-3 |
| Website | https://www.codeerts.com |
| Versions | 17.0 18.0 19.0 |
Margin on Products, Sales & Invoices
See cost, margin amount and margin percentage right where you sell.
On every product, sale order and invoice.
Loss-making lines turn red, and a Margin Total measure drops straight into your sales and invoice analysis. No configuration.
|
%
Margin on Products
|
3
Documents Covered
|
Red
Loss Lines Flagged
|
0
Configuration
|
v18
Compatible
|
The margin blind spot every sales team knows
|
You quote without knowing the margin
Reps set prices and discounts with no view of cost, so a deal can look fine on screen and still lose money on delivery. |
Loss-making lines hide in plain sight
A single line sold below cost looks exactly like every other line until finance finds it long after the order shipped. |
Margin lives in spreadsheets, not Odoo
To see profit by product or customer you export data and rebuild it by hand, so the number is always out of date. |
What this module does
Margin on Products, Sales & Invoices reads the cost and price you already keep in Odoo and shows the profit behind every line. Each product gains a Margin percentage next to its sales price. Each sale order line gains a Cost column and a Margin Amount column, and the order shows a total Margin Amount and Margin percentage.
The same Cost and Margin Amount columns appear on customer invoices with their own totals, any line that would sell below cost is highlighted in red, and a Margin Total measure is added to the Sales Analysis and Invoice Analysis reports so you can pivot and graph profitability by product, customer or period. Nothing about your data is changed.
|
💰
Margin Everywhere You Sell
Cost, margin amount and margin percentage on products, sale order lines and invoice lines, with totals on the order and the invoice. |
🚩
Loss Lines Turn Red
Any line whose margin falls below zero is highlighted in red on the order and the invoice, so a below-cost sale is impossible to miss before you confirm. |
📊
Margin in Your Reports
A Margin Total measure is built into the Sales Analysis pivot and graph and the Invoice Analysis pivot, so you analyze profit like any other figure. |
|
💵 Margin % on Every Product
A Margin percentage field on the product form, computed from the sales price and the cost. |
🧾 Cost & Margin on Sale Lines
A Cost column and a Margin Amount column on each sale order line, calculated from the product cost and the line price. |
|
📄 Order & Invoice Totals
A total Margin Amount and Margin percentage on the sale order and on the customer invoice. |
🧾 Cost & Margin on Invoice Lines
The same Cost and Margin Amount columns on each customer invoice line, so profit is confirmed at invoicing. |
|
🚩 Loss Lines Highlighted
Lines with a margin below zero are shown in red on the order and the invoice so a below-cost sale stands out at a glance. |
📈 Margin in Sales & Invoice Analysis
A Margin Total measure added to the Sales Analysis pivot and graph and the Invoice Analysis pivot for grouping and charting. |
|
⚙ No Configuration
Install and the margin figures appear at once. There is nothing to set up and no code to write. |
🔒 Read-Only & Safe
The module only reads the cost and price you already keep and displays the result. It never edits or moves your data. |
How it works
1 |
Install the module No setup screen and no configuration. The margin fields appear as soon as it is installed. |
2 |
Open any product The product form now shows a Margin percentage next to the sales price, computed from price and cost. |
3 |
Build a sale order Cost, Margin Amount and the order totals appear as you add lines, and any below-cost line turns red. |
4 |
Invoice the order The same Cost and Margin Amount columns and the margin totals carry onto the customer invoice. |
5 |
Analyze the margin Open Sales or Invoice Analysis, add the Margin Total measure, and pivot or graph profit by product, customer or period. |
See it in action
From a product, through the sale order and invoice, to the margin analysis.
Technical information
|
Version
18.0
|
License
LGPL-3
|
Editions
Community & Enterprise
|
Dependencies
Sales, Inventory, Accounting
|
Technical name: codeerts_product_margin · Depends on: sale_management, stock, account
Frequently asked questions
Once installed, every sale order line shows a Cost and a Margin Amount column, and the order shows a total Margin Amount and Margin percentage, so you see profitability while you build the quotation.
The product form gains a Margin percentage field next to the sales price, computed from the sales price and the cost, so each product shows its own margin without any manual entry.
Yes. Customer invoice lines show a Cost and a Margin Amount column, and the invoice shows a total Margin Amount and Margin percentage, so profit is confirmed at invoicing as well as at quotation.
Any line whose margin falls below zero is highlighted in red on the sale order and on the invoice, so a loss-making line is impossible to miss before you confirm.
Yes. A Margin Total measure is added to the Sales Analysis pivot and graph and to the Invoice Analysis pivot, so you can group and chart margin by product, customer, salesperson or period like any other measure.
Use the version selector at the top of this page to pick your Odoo release. The module runs on both Community and Enterprise, and each Odoo Apps Store listing shows the exact version it supports.
The team behind this module
About CODEerts
Full-Service Odoo ERP Agency · Solutions That Scale
Every module in our store is built from real client work, tested in production and maintained long-term by a team of Odoo certified consultants. When you need more than an app, we deliver the full solution.
|
🏗️ Implementation
Full Odoo roll-outs from requirements to go-live, across any industry and company size. |
🧩 Custom Development
Bespoke modules, OWL components and business logic built precisely to your workflow. |
🔄 Migrations
Zero-data-loss upgrades from older Odoo versions with full custom module porting. |
|
🔌 Integrations
Payment gateways, shipping carriers, biometric devices, eCommerce and third-party APIs. |
🔍 Odoo Audits
Performance, security and code-quality reviews that surface risks before they become problems. |
🧑💻 Support & Training
Ongoing helpdesk, user training and monthly retainers so your team stays productive. |
Odoo Certified |
6+ Years |
50+ Projects |
10+ Industries |
Please log in to comment on this module