POS Margin Color and Display
Color-code POS cart lines by margin and optionally show margin percentages — per shop, per company.
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
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.
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
- Install POS Margin Color and Display (
pos_margin_color_rules). - Open Point of Sale → Configuration → Settings and select a POS shop.
- Enable POS Margin Color Coding, adjust rules, and optionally turn on margin percentage display.
- Save, then open a new POS session so the shop loads the latest rules.
- Add products — cart lines update colors (and optional %) based on live margin.
Technical Information
| Technical Name | pos_margin_color_rules |
| Version | 18.0.1.3.0 |
| Category | Sales / Point of Sale |
| Dependencies | point_of_sale |
| License | LGPL-3 |
| Notes | Uses product cost already loaded by Odoo 18 POS (standard_price). No extra cost RPC required. |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
| Lines of code | 430 |
| Technical Name |
pos_margin_color_rules |
| License | LGPL-3 |
| Website | https://www.devpii.com |
Please log in to comment on this module