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 18.0Adds a traffic-light (green, yellow, red) criterion to sales commission rules, so different commission percentages can be applied depending on the semaphore status of the invoice line.
This module extends the existing product-criteria commission rules with an extra filter: the semaphore status of the sale line.
- On each commission rule line you can now pick a semaphore value: green, yellow or red, or leave it empty.
- When Odoo looks for the commission rule to apply to a line, it first keeps the usual product/category rules, then prefers a rule whose semaphore matches the line's semaphore. Rules with no semaphore remain valid as a generic fallback.
- The semaphore shown on settlement lines is automatically taken from the related invoice line, so you do not enter it manually.
- The semaphore column is visible in the commission rule list and form, in the commission form's rule lines, and in the settlement lines list.
- The settlement report now shows a coloured dot per line and a summary table with the total settled amount per semaphore colour (green, yellow, red and no colour).
It touches the commission rule (commission.item), the commission line logic (commission.line.mixin) and the settlement line (commission.settlement.line), and adjusts the settlement report template.
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 18.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 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/commission.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.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.