Payroll Contract Advantages

payroll_contract_advantages
REPOSITORY
REPOSITORYOCA/payroll
GIT
GIThttps://github.com/OCA/payroll.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/payroll/tree/18.0/payroll_contract_advantages
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPayroll
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Nimarosa
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Nimarosa
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, CristianoMafraJunior
WEBSITE
WEBSITEhttps://github.com/OCA/payroll
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/payroll:
    - payroll
odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - digest
    - mail
    - bus
    - web_tour
    - html_editor
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - phone_validation
    - resource_mail
    - hr_holidays
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds support for advantages templates and advantages to be
set in contract form. The advantages can be set in the contract form as
a list of advantages templates. Then it can be used in the calculation
of the salary rules.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
advantages_hr_contract_view_form hr.contract.view.form.inherit.advantages hr.contract xpath Inherits hr_contract.hr_contract_view_form
hr_contract_advantage_template_view_form hr.contract.advantage.template.form hr.contract.advantage.template form New
hr_contract_advantage_template_view_tree hr.contract.advantage.template.tree hr.contract.advantage.template list New
Models touched (4)

New fields (1)
  • advantages_ids One2many → hr.contract.advantage
    string='Contract Advantages' args: 'hr.contract.advantage', 'contract_id'
Public methods (0)

No public methods.

New fields (6)
  • advantage_lower_bound Float
    readonly=True related='advantage_template_id.lower_bound' string='Lower Bound'
  • advantage_template_code Char
    readonly=True related='advantage_template_id.code' string='Code'
  • advantage_template_id Many2one → hr.contract.advantage.template
    string='Advantage Template' args: 'hr.contract.advantage.template'
  • advantage_upper_bound Float
    readonly=True related='advantage_template_id.upper_bound' string='Upper Bound'
  • amount Float
  • contract_id Many2one → hr.contract
    args: 'hr.contract'
Public methods (0)

No public methods.

New fields (5)
  • code Char
    required=True
  • default_value Float
  • lower_bound Float
    help='Lower bound authorized by the employer for this advantage'
  • name Char
    required=True
  • upper_bound Float
    help='Upper bound authorized by the employer for this advantage'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_current_contract_dict(self, contract, contracts)
REPOSITORY
REPOSITORYOCA/payroll
GIT
GIThttps://github.com/OCA/payroll.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/payroll/tree/17.0/payroll_contract_advantages
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPayroll
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Nimarosa
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Nimarosa
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, CristianoMafraJunior
WEBSITE
WEBSITEhttps://github.com/OCA/payroll
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/payroll:
    - payroll
odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - phone_validation
    - mail
    - bus
    - web_tour
    - resource
    - hr_holidays
    - calendar
    - onboarding
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds support for advantages templates and advantages to be
set in contract form. The advantages can be set in the contract form as
a list of advantages templates. Then it can be used in the calculation
of the salary rules.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
advantages_hr_contract_view_form hr.contract.view.form.inherit.advantages hr.contract xpath Inherits hr_contract.hr_contract_view_form
hr_contract_advantage_template_view_form hr.contract.advantage.template.form hr.contract.advantage.template form New
hr_contract_advantage_template_view_tree hr.contract.advantage.template.tree hr.contract.advantage.template tree New
Models touched (4)

New fields (1)
  • advantages_ids One2many → hr.contract.advantage
    string='Contract Advantages' args: 'hr.contract.advantage', 'contract_id'
Public methods (0)

No public methods.

New fields (6)
  • advantage_lower_bound Float
    readonly=True related='advantage_template_id.lower_bound' string='Lower Bound'
  • advantage_template_code Char
    readonly=True related='advantage_template_id.code' string='Code'
  • advantage_template_id Many2one → hr.contract.advantage.template
    string='Advantage Template' args: 'hr.contract.advantage.template'
  • advantage_upper_bound Float
    readonly=True related='advantage_template_id.upper_bound' string='Upper Bound'
  • amount Float
  • contract_id Many2one → hr.contract
    args: 'hr.contract'
Public methods (0)

No public methods.

New fields (5)
  • code Char
    required=True
  • default_value Float
  • lower_bound Float
    help='Lower bound authorized by the employer for this advantage'
  • name Char
    required=True
  • upper_bound Float
    help='Upper bound authorized by the employer for this advantage'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_current_contract_dict(self, contract, contracts)
REPOSITORY
REPOSITORYOCA/payroll
GIT
GIThttps://github.com/OCA/payroll.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/payroll/tree/16.0/payroll_contract_advantages
VERSION
VERSION 3.0.2
CATEGORY
CATEGORYPayroll
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Nimarosa
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Nimarosa
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, CristianoMafraJunior
WEBSITE
WEBSITEhttps://github.com/OCA/payroll
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/payroll:
    - payroll
odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - hr_holidays
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
advantages_hr_contract_view_form hr.contract.view.form.inherit.advantages hr.contract xpath Inherits hr_contract.hr_contract_view_form
hr_contract_advantage_template_view_form hr.contract.advantage.template.form hr.contract.advantage.template form New
hr_contract_advantage_template_view_tree hr.contract.advantage.template.tree hr.contract.advantage.template tree New
Models touched (4)

New fields (1)
  • advantages_ids One2many → hr.contract.advantage
    string='Contract Advantages' args: 'hr.contract.advantage', 'contract_id'
Public methods (0)

No public methods.

New fields (7)
  • advantage_lower_bound Monetary
    readonly=True related='advantage_template_id.lower_bound' string='Lower Bound'
  • advantage_template_code Char
    readonly=True related='advantage_template_id.code' string='Code'
  • advantage_template_id Many2one → hr.contract.advantage.template
    string='Advantage Template' args: 'hr.contract.advantage.template'
  • advantage_upper_bound Monetary
    readonly=True related='advantage_template_id.upper_bound' string='Upper Bound'
  • amount Monetary
    currency_field='currency_id'
  • contract_id Many2one → hr.contract
    args: 'hr.contract'
  • currency_id Many2one
    readonly=True related='contract_id.currency_id' store=True
Public methods (0)

No public methods.

New fields (7)
  • active Boolean
    default=True
  • code Char
    required=True
  • currency_id Many2one → res.currency
    default=<expr> required=True args: 'res.currency'
  • default_value Monetary
    currency_field='currency_id'
  • lower_bound Monetary
    currency_field='currency_id' help='Lower bound authorized by the employer for this advantage'
  • name Char
    required=True
  • upper_bound Monetary
    currency_field='currency_id' help='Upper bound authorized by the employer for this advantage'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_current_contract_dict(self, contract, contracts)
REPOSITORY
REPOSITORYOCA/payroll
GIT
GIThttps://github.com/OCA/payroll.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/payroll/tree/14.0/payroll_contract_advantages
VERSION
VERSION 3.0.0
CATEGORY
CATEGORYPayroll
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Nimarosa
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Nimarosa
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, nicolasrsande
WEBSITE
WEBSITEhttps://github.com/OCA/payroll
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:07
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/payroll:
    - payroll
odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - hr_holidays
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
advantages_hr_contract_view_form hr.contract.view.form.inherit.advantages hr.contract xpath Inherits hr_contract.hr_contract_view_form
hr_contract_advantage_template_view_form hr.contract.advantage.template.form hr.contract.advantage.template form New
hr_contract_advantage_template_view_tree hr.contract.advantage.template.tree hr.contract.advantage.template tree New
Models touched (4)

New fields (1)
  • advantages_ids One2many → hr.contract.advantage
    string='Contract Advantages' args: 'hr.contract.advantage', 'contract_id'
Public methods (0)

No public methods.

New fields (6)
  • advantage_lower_bound Float
    readonly=True related='advantage_template_id.lower_bound' string='Lower Bound'
  • advantage_template_code Char
    readonly=True related='advantage_template_id.code' string='Code'
  • advantage_template_id Many2one → hr.contract.advantage.template
    string='Advantage Template' args: 'hr.contract.advantage.template'
  • advantage_upper_bound Float
    readonly=True related='advantage_template_id.upper_bound' string='Upper Bound'
  • amount Float
    string='Amount'
  • contract_id Many2one → hr.contract
    args: 'hr.contract'
Public methods (0)

No public methods.

New fields (5)
  • code Char
    required=True args: 'Code'
  • default_value Float
    args: 'Default value for this advantage'
  • lower_bound Float
    help='Lower bound authorized by the employer for this advantage' args: 'Lower Bound'
  • name Char
    required=True args: 'Name'
  • upper_bound Float
    help='Upper bound authorized by the employer for this advantage' args: 'Upper Bound'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_current_contract_dict(self, contract, contracts)