Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Sales
  3. Margin on Products, Sales & Invoices v 18.0
  4. Sales Conditions FAQ

Margin on Products, Sales & Invoices

by CODEerts https://www.codeerts.com
Odoo
v 18.0 Third Party 5
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
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
LicenseLGPL-3
Websitehttps://www.codeerts.com
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
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
LicenseLGPL-3
Websitehttps://www.codeerts.com
Versions 17.0 18.0 19.0
CODEerts  ·  Odoo 18

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 Sales & Invoices Loss Lines in Red Margin Analysis No-Code
%
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.

Step 1 of 6 Margin percentage on every product Product form showing the margin percentage next to the sales price
Step 2 of 6 Cost, margin and totals on the sale order, loss line in red Sale order with Cost and Margin Amount columns, a red below-cost line and margin totals
Step 3 of 6 The same margin carried onto the customer invoice Customer invoice with Cost and Margin Amount columns, red loss line and margin totals
Step 4 of 6 Margin Total measure in the Sales Analysis pivot Sales Analysis pivot with the Margin Total measure
Step 5 of 6 Margin by product in the Sales Analysis graph Sales Analysis graph of Margin Total by product, with one product below zero
Step 6 of 6 Margin Total measure in the Invoice Analysis pivot Invoice Analysis pivot with the Margin Total measure

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

How do I see the profit margin on a sale order in Odoo?

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.

How do I show the margin percentage on a product in Odoo?

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.

Can I see the margin on a customer invoice too?

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.

How can I spot a sale line that is sold below cost?

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.

Can I analyze margin by product or customer over time?

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.

Which Odoo versions are supported?

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

Need Help?

Questions, customization requests, or bug reports. We respond fast.

Email Us
Support

CODEerts  ·  Response within 1-2 business days

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with