HR commissions OCA

hr_commission_oca
REPOSITORY
REPOSITORYOCA/commission
GIT
GIThttps://github.com/OCA/commission.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/commission/tree/18.0/hr_commission_oca
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCommissions
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, David Bañón
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:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - hr
    - phone_validation
    - resource_mail
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module links sale_commission with hr module. For now, it only adds
another type of agent whose commissions are not invoiced in the
corresponding wizard.

It also computes the Boolean field "employee" in ResPartner to be
updated according to the ResPartner-HrEmployee relation that was
created.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_partner_form_agent res.partner field Inherits commission_oca.view_partner_form_agent
view_settlement_form Settlements - Add "Mark as invoiced" button commission.settlement button Inherits account_commission_oca.view_settlement_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • mark_as_invoiced(self)

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    Check if there's an agent linked to that employee.

New fields (3)
  • agent_type Selection
    selection_add=[('salesman', 'Salesman (employee)')]
  • employee Boolean
    compute='_compute_employee' readonly=False store=True
  • employee_id Many2one → hr.employee
    comodel_name='hr.employee' compute='_compute_employee_id' compute_sudo=True string='Related Employee'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/commission
PULL REQUEST
PULL REQUEST[19.0][MIG] hr_commission_oca (#665)