Sale Commission Product Criteria Semaphore
This module extends sale_commission_product_criteria so commission rules can also be filtered by semaphore status.
With it, you can keep the usual product/category-based rules and add more specific percentages for lines marked as green, yellow or red in sale_semaphore. Generic rules without semaphore remain valid as a fallback.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0Lets you add a traffic-light status (green, yellow or red) to commission rules, so the same product can earn different commission percentages depending on the semaphore shown on the invoice line.
This module extends the product-based commission rules with a traffic-light (semaphore) criterion. On each commission rule line you can now pick a status: green, yellow or red, or leave it empty.
When Odoo looks for the commission rule to apply to a sale or invoice line, it first keeps the usual product/category rules and then only accepts rules whose status is empty or matches the status of the line. Rules without a status therefore stay valid as a general fallback.
Where you see it: - In the commission configuration form and list, a new status column/field appears next to the product. - On commission settlements, each settlement line shows the status coming from its invoice line, and the settlement form displays it in the lines list. - The settlement PDF report adds a coloured dot per line and a summary table showing the settled amount grouped by green, yellow, red and no status.
Business behaviour: the status on a settlement line is calculated automatically from the related invoice line and stored, so it does not need to be entered by hand. No new menus are added; everything appears inside the existing commission and settlement screens.
Models and fields (3)
- commission.item · extends an existing modelsemaphore
- commission.line.mixin · extends an existing model
- commission.settlement.line · extends an existing modelsemaphore
Text generated by AI (DeepSeek) from reading the Odoo 15.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/commission.
terminal Installation and usage
OCA documentation · Odoo 15.0Usage
Source · Odoo 15.0To use this module:
- Install
sale_commission_product_criteria_semaphoretogether with its dependencies. - Go to Commissions > Configuration > Commission types and open or create a commission of type Product criteria.
- Add commission items as usual and optionally set a Semaphore value on each line:
- empty semaphore: fallback rule that applies to any line.
🟢success: applies only to green lines.🟡warning: applies only to yellow lines.🔴danger: applies only to red lines.- When commissions are generated, the module evaluates both the product criteria and the semaphore of the source line.
- Settlement lines keep the semaphore value, and the settlement report shows totals grouped by semaphore color.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.