Sales commissions OCA

sale_commission_oca
REPOSITORY
REPOSITORYOCA/commission
GIT
GIThttps://github.com/OCA/commission.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/commission/tree/19.0/sale_commission_oca
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, arantxa-s73, Pablo Cortés
WEBSITE
WEBSITEhttps://github.com/OCA/commission
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/commission:
    - account_commission_oca
    - commission_oca
odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds the function to calculate commissions in sales orders.

Commission lines assigned to sales order lines will be passed to the
corresponding invoice lines.

Creating settlements directly from the sales order lines is outside the
scope of this module.

This module depends on the account_commission module.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_order_agent_form_inherit sale.agent.order.inherit.form sale.order xpath Inherits sale.view_order_form
view_sale_order_line_tree sale.order.line.agent.tree sale.order.line.agent list New
view_sales_order_filter_agent view_sales_order_filter_agent sale.order field Inherits sale.view_sales_order_filter
Models touched (3)

New fields (2)
  • commission_total Float
    compute='_compute_commission_total' store=True string='Commissions'
  • partner_agent_ids Many2many → res.partner
    comodel_name='res.partner' compute='_compute_agents' search='_search_agents' string='Agents'
Public methods (1)
  • recompute_lines_agents(self)

New fields (1)
  • agent_ids One2many → sale.order.line.agent
    comodel_name='sale.order.line.agent'
Public methods (0)

No public methods.

New fields (1)
  • object_id Many2one → sale.order.line
    comodel_name='sale.order.line'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/commission
GIT
GIThttps://github.com/OCA/commission.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/commission/tree/18.0/sale_commission_oca
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSJordiMForgeFlow, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/commission
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/commission:
    - account_commission_oca
    - commission_oca
odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds the function to calculate commissions in sales orders.

Commission lines assigned to sales order lines will be passed to the
corresponding invoice lines.

Creating settlements directly from the sales order lines is outside the
scope of this module.

This module depends on the account_commission module.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_order_agent_form_inherit sale.agent.order.inherit.form sale.order xpath Inherits sale.view_order_form
view_sale_order_line_tree sale.order.line.agent.tree sale.order.line.agent list New
view_sales_order_filter_agent view_sales_order_filter_agent sale.order field Inherits sale.view_sales_order_filter
Models touched (3)

New fields (2)
  • commission_total Float
    compute='_compute_commission_total' store=True string='Commissions'
  • partner_agent_ids Many2many → res.partner
    comodel_name='res.partner' compute='_compute_agents' search='_search_agents' string='Agents'
Public methods (1)
  • recompute_lines_agents(self)

New fields (1)
  • agent_ids One2many → sale.order.line.agent
    comodel_name='sale.order.line.agent'
Public methods (0)

No public methods.

New fields (1)
  • object_id Many2one → sale.order.line
    comodel_name='sale.order.line'
Public methods (0)

No public methods.