Repository
OCA/hr · module folder · Try on Runboat
Module version
1.0.0
Category
HR
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr
Last tracking update
2026-08-07 08:23:04
Authors
Odoo Community Association (OCA), APSL-Nagarro
Maintainers
Odoo Community Association (OCA), APSL-Nagarro
Committers
Weblate, oca-ci, Antoni Marroig Campomar
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits hr_contract.hr_contract_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.