This module extends commission to introduce the use of formulas to compute the agent commissions.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Adds a new 'Formula' commission type so you can calculate agent commissions with a custom formula instead of fixed percentages. The formula is written on the commission record and is applied to sales order lines and invoice lines.
This module extends the existing commission feature. On each commission record you now get a third commission type called 'Formula', next to the standard percentage-based options.
When you choose 'Formula', a text editor appears on the commission form where you write the calculation. The screen also shows instructions and a reference table of the common fields available on sales order lines (discount, subtotal, unit price, quantity) and on invoice lines (discount, subtotal, unit price, quantity).
- The formula can use 'line' to read the values of the document line being processed, and must put the final commission amount in 'result'.
- Because field names differ between sales orders and invoices, the formula can check whether the line comes from a sales order or from an invoice and calculate accordingly.
- A default formula is pre-filled that returns zero for both cases, so nothing is charged until you write your own calculation.
- If a product is marked as commission free, the formula is not applied and no commission is generated for that line.
The module touches the commission configuration model and the shared commission line logic used when commission amounts are computed on sales and invoices. A demo commission named '5% + 10% extra' illustrates a formula that gives 5% of the subtotal plus an extra 10% on that amount.
Depends on
Models and fields (2)
- commission · extends an existing modelformula, commission_type
- commission.line.mixin · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 17.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: 3 confirmed, 6 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 17.0Usage
Source · Odoo 17.0To use this module, you need to:
- Go to Commission \> Configuration \> Commission Types, and create a commission with type formula
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.