OdooWiki OCA HUB

Sale Commission Product Criteria

sale_commission_oca_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 18.0

Adds a new "Product criteria" commission type so you can pay different commission rates per product, product variant, product category or all products, applied automatically on sales orders and invoices.

This module extends the commission feature with a new commission type called "Product criteria". On a commission record you can now define a list of rules ("Commission Items") instead of a single rate. Each rule says what it applies to (all products, a product category, a product, or a specific product variant) and how the commission is computed: a fixed amount or a percentage.

Rules are applied hierarchically: a rule for a specific variant wins over a product rule, which wins over a category rule, which wins over the all-products rule. When a sales order line or invoice line is processed, the matching rule is found automatically and the commission amount is computed from the line subtotal (or the net amount after cost, depending on the commission base setting). Refund invoices get a negative commission.

Where it appears: - On the commission form, a "Rules" section lists the items when the type is "Product criteria". - A new menu "Commission Type Items" under Commission Management lets managers create and search rules directly, grouped by commission. - On sales order agent lines, extra columns show the applied rule, its type and the final amount. - The settlement report shows a "Value" column with the fixed amount or percentage used.

Business rules: changing the commission type is blocked if there are confirmed sales orders or posted invoices using it; each rule must specify the category, product or variant it targets; and only sales managers can edit the computation fields.

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 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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

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