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
    • Artificial Intelligence
    • 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
    • Affiliate Program
    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. Point Of Sale
  3. POS Margin Color and Display v 20.0
  4. Sales Conditions FAQ

POS Margin Color and Display

by DevPii (Private) Limited https://www.devpii.com
Odoo
v 20.0 Third Party 11
Download for v 20.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 18.0 19.0 20.0
  • Description
  • Manifest
POS Margin Color and Display

POS Margin Color and Display

by Community

Color-code POS cart lines by margin and optionally show margin percentages — per shop, per company.

Odoo 20 Community

Overview

Give cashiers instant visibility into profitability. Configure margin rules for each Point of Sale shop, color cart lines when a sale is at a loss, low margin, or healthy margin, and optionally display the margin percentage on every order line. Rules stay isolated per POS configuration and remain stable when switching shops or companies.

Feature Highlights

POS Margin Color Coding settings

Per-Shop Margin Rules

Configure rules from Point of Sale → Configuration → Settings for the selected POS shop:

  • Enable or disable margin color coding
  • Optionally display margin percentage on cart lines
  • Add unlimited active/inactive rules with sequence order
  • Set inclusive minimums, optional inclusive maximums, or unbounded limits
  • Pick background and text colors with Odoo’s color picker

Live Cart Line Coloring

In the POS UI, each cart line is colored from the matching margin rule as soon as products are added or prices/discounts change.

  • Loss — at or below 0% (default pink)
  • Cost to Cost / Low Margin — above 0% and below 3% (default orange)
  • Healthy Margin — from 3% upward (default green)

Margin formula: ((net unit price − cost) / net unit price) × 100, using the line discount.

POS cart lines colored by margin

Multi-Shop / Multi-Company Safe

Each POS configuration keeps its own margin rules. Switching shops or companies in Settings no longer deletes or reassigns another shop’s colors. Rules are company-aware and restored automatically if a shop lost them after an upgrade.

Default Rules Out of the Box

Existing and newly created POS shops receive the Loss / Low Margin / Healthy Margin defaults automatically. Customize thresholds and colors per shop without writing code.

How It Works

  1. Install POS Margin Color and Display (pos_margin_color_rules).
  2. Open Point of Sale → Configuration → Settings and select a POS shop.
  3. Enable POS Margin Color Coding, adjust rules, and optionally turn on margin percentage display.
  4. Save, then open a new POS session so the shop loads the latest rules.
  5. Add products — cart lines update colors (and optional %) based on live margin.

Technical Information

Technical Name pos_margin_color_rules
Version 20.0.1.0.0
Author Community
Category Sales / Point of Sale
Dependencies point_of_sale
License LGPL-3
Notes Uses product cost already loaded by Odoo 20 POS (standard_price). No extra cost RPC required.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Point of Sale (point_of_sale)
• Invoicing (account)
• Discuss (mail)
Lines of code 417
Technical Name pos_margin_color_rules
LicenseLGPL-3
Websitehttps://www.devpii.com

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