OdooWiki OCA HUB

Sale Commission Product Criteria

sale_commission_product_criteria folder_open OCA/commission open_in_new
Sales Management License: AGPL-3

This module allows to set in the same Commission Type different commission rates according to the product on SO/invoice line.

This is made possible since this module adds a new "Product criteria" type to Commission Type and applies commission rates with the same logic of sale pricelist items.

For example, such a Commission Type can grant:

10% on a specific Product A, 10$ on Product B, 4% on products in Category 1 and 5$ on all other products.

In SO/invoice, system will apply different commissions based on variant/product/category or global, applied hierarchically. This means that for the example above, if product A is assigned to Category 1, commission assigned is 10%, as per variant/product/category/global rule application order.

Furthermore, these commission type items can be accessed and created by a specific menu, to facilitate their management in environments with lots of records.

The form for commission type item can be extended by future modules with further conditions to decide when to apply a specific item.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a new 'Product criteria' commission type where you define commission rules per product, product variant, product category or all products, each with a fixed amount or a percentage.

This module extends the sales commission feature so a commission can be calculated from a list of rules instead of a single rate.

On a commission record you can now choose the type 'Product criteria'. When you do, a 'Rules' section appears where you add commission items. Each item says what it applies to: all products, a product category, a product, or a specific product variant. For each item you choose whether the commission is a fixed amount or a percentage.

Rules are applied in a hierarchy: variant first, then product, then category, then all products. The first matching rule wins, so a more specific rule overrides a general one. The commission amount is then shown on the sale order line and on the invoice line, and the applied rule is stored on the agent line.

A new menu 'Commission Type Items' under commission management lists all rules and lets managers create and edit them; salespeople can only read them. Changing the commission type is blocked if the commission is already used on confirmed sales orders or posted invoices. If a commission is unarchived, its rules are reactivated too.

Depends on

Menus it adds

Commission Type Items
Models and fields (6)
  • commission · extends an existing modelitem_ids, commission_type
  • commission.item · new modelname, active, based_on, categ_id, sequence, applied_on, company_id, product_id, currency_id, fixed_amount, commission_id (Commission), percent_amount (Percentage Amount), commission_type, product_tmpl_id, commission_value (Value)
  • sale.order.line · extends an existing model
  • commission.line.mixin · extends an existing modelcommission_id, applied_commission_id
  • sale.order.line.agent · extends an existing modelbased_on, discount, fixed_amount, percent_amount, applied_on_name, commission_type, applied_commission_item_id
  • account.invoice.line.agent · extends an existing modelapplied_commission_item_id

Text generated by AI (DeepSeek) from reading the Odoo 16.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation 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 16.0

To use features of this module, you need to:

  • Go to Commissions > Configuration > Commission Types.
  • Create a Commission Type with type = "Product criteria".
  • Create multiple rules based on variant/product/category or global
  • These rules will be sorted according to the same logic of sale pricelist.
  • Rest flow is according to OCA sale_commission module.

No verified information in OCA: Installation, Configuration.

info

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.