OdooWiki OCA HUB

Sale Commission Product Criteria Country

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

This module extends the functionality of sale_commission_product_criteria to apply different commissions rules depending on the country of the customer.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you set commission rules that depend on the customer's country, so the same product can earn a different commission for customers in different countries.

This module adds a country condition to the commission rules used by sales agents.

  • On each commission rule line you can now fill in a "Customer Country" field. If you leave it empty, the rule applies to every customer; if you set a country, the rule only applies to customers from that country.
  • The country column is visible in the commission rule list and in the rule lines shown on the commission form, and it is available on the rule form itself.

When Odoo computes the commission for a sales order line or a customer invoice line, it looks at the country of the customer on that order or invoice and only uses the rules whose country is empty or matches that country. Rules with a specific country are given priority over rules without one, so a country-specific rate wins over a general rate.

The module touches the commission rule model (commission.item), the agent lines of sales orders (sale.order.line.agent) and of customer invoices (account.invoice.line.agent), and the shared commission calculation logic. No new menus or reports are added; the change appears inside the existing commission configuration screens.

Models and fields (3)
  • commission.item · extends an existing modelcountry_id (Customer Country)
  • sale.order.line.agent · extends an existing model
  • account.invoice.line.agent · extends an existing model

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/commission.

terminal Installation and usage

OCA documentation · Odoo 16.0

To use this module, you need to:

  • Go to Commissions > Configuration > Commission Types.
  • Create or open a Commission Type with type = "Product criteria".
  • Open or create a rule, appart from the "Apply On" field, you can fill the "Customer Country" to filter whose customers this rule will be applied to. If the field is empty, it will be applied to all customers.
  • The rules will be sorted according to his priority, rules with countries are more prioritary than rules without it.

When selling or invoicing to a customer, Odoo will query the commission rules, filtering by the country of the customer if set. Before that, odoo will apply the first commission rule found, as it is done in the sale_commission_product_criteria 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.