This module extends the functionality of sale_commission to allow you to auto-populate salesmen as commission agents without setting explicitly them on the customer.
IMPORTANT: The salesman will be only populated if no other commission agent is set via other method, to assure that there's no overlapping commissions.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Automatically adds the salesman as a commission agent on sales orders and customer invoices when no other commission agent is already set, provided the salesman's contact is flagged as an agent with a commission plan.
This module extends the commission features of Odoo so that the salesperson who handles a sale can automatically earn a commission, without having to manually add them as an agent on each customer or document.
On a contact form, a new checkbox "Convert salesman into agent" appears next to the commission field, but only for contacts that are linked to a user (i.e. real salespeople). If you tick it, Odoo requires that the same contact also has a commission plan; otherwise it shows a validation error and refuses to save.
When a sales order line or a customer invoice line is processed, Odoo checks whether any commission agent is already present. If none is found, and the salesperson's contact is both an agent and flagged with this option, that salesperson is added as the commission agent on the line. This applies to sales order lines and to customer invoice lines (outgoing invoices only, and only when a product is set).
The rule is designed to avoid overlapping commissions: it only fills in the salesman when no other commission rule has already assigned an agent. The module touches the contact, sales order line and invoice line screens and relies on the commission module's agent computation.
Depends on
Models and fields (3)
- res.partner · extends an existing modelsalesman_as_agent (Convert salesman into agent)
- sale.order.line · extends an existing model
- account.move.line · extends an existing model
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: 7 confirmed, 2 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.0Configuration
Source · Odoo 18.0- Go to Contacts.
- Search for the contact linked to the salesman user and open it.
- If it's actually linked to a user, you'll see a new check in the Agent information page, called "Convert salesman into agent".
- Check it for having that salesman automatically populated as agent. You need to assign a commission to that agent as well.
Usage
Source · Odoo 18.0To use this module, you need to:
- Go to Sales \> Orders \> Quotations and create a new one.
- Fill the customer with one with no agents set.
- Select a salesman with the mark checked.
- Add a line in the quotation, and you will see the salesman populated as commission agent.
No verified information in OCA: Installation.
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.