HR Contract Bonus

hr_contract_bonus
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/17.0/hr_contract_bonus
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHR
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), APSL-Nagarro
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), APSL-Nagarro
COMMITTERS
COMMITTERSWeblate, oca-ci, Antoni Marroig Campomar
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - phone_validation
    - mail
    - bus
    - web_tour
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Adds support for managing bonuses in employee contracts. Allows setting fixed or variable bonuses.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_hr_contract_bonus_form hr.contract.bonus.form hr.contract.bonus form New
view_hr_contract_bonus_tree hr.contract.bonus.tree hr.contract.bonus tree New
view_hr_contract_view_form_inherit hr.contract.form.inherit hr.contract xpath Inherits hr_contract.hr_contract_view_form
Models touched (2)

New fields (3)
  • bonus_ids Many2many → hr.contract.bonus
    comodel_name='hr.contract.bonus' help="List of bonuses that can be applied to the employee's contract." string='Bonuses'
  • total_annual_wage_with_bonus Float
    compute='_compute_total_annual_wage_with_bonus' help="Total wage including the bonus applied to the employee's contract." string='Total annual wage with bonus'
  • total_annual_wage_without_bonus Float
    compute='_compute_total_annual_wage_without_bonus' help="Total wage excluding the bonus applied to the employee's contract." string='Total annual wage without bonus'
Public methods (0)

No public methods.

New fields (4)
  • amount Float
    help="The amount of the bonus to be applied to the employee's contract." required=True string='Bonus Amount'
  • frequency Selection
    default='monthly' help="Frequency at which the bonus is applied to the employee's contract." required=True selection=[('monthly', 'Monthly'), ('yearly', 'Yearly')] string='Bonus Frequency'
  • name Char
    help="Name of the bonus to be applied to the employee's contract." required=True
  • type Selection
    default='fixed' help='Type of bonus to be applied. Fixed amount or percentage of the salary.' required=True selection=[('fixed', 'Fixed Amount'), ('percentage', 'Percentage of Salary')] string='Bonus Type'
Public methods (0)

No public methods.