Time Accrual Policy

hr_policy_accrual
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/10.0/hr_policy_accrual
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSPedro M. Baeza, Iryna Vushnevska
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/hr:
    - hr_contract_state
    - hr_contract_init
    - hr_job_categories
    - hr_security
    - hr_employee_seniority
    - hr_policy_group
odoo/odoo:
    - hr_contract
    - base_action_rule
    - base
    - resource
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - hr
    - hr_payroll
    - hr_holidays
    - calendar
    - web_calendar
    - product
    - decimal_precision
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Define Time Accrual Policies
============================
Define properties of a leave accrual policy. The accrued time is calculated
based on the length of service of the employee. An additional premium may be
added on the base rate based on additional months of service.
This policy is ideal for annual leave accruals. If the type of accrual is
'Standard' time is accrued and withdrawn manually. However, if the type is
'Calendar' the time is accrued (and recorded) at a fixed frequency.
    

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
accr_policy_line_form_view hr.policy.line.accrual.form hr.policy.line.accrual form New
accr_policy_line_tree_view hr.policy.line.accrual.tree hr.policy.line.accrual tree New
accr_policy_view_form hr.policy.accrual.form hr.policy.accrual form New
accr_policy_view_tree hr.policy.accrual.tree hr.policy.accrual tree New
accrual_line_job_form_view hr.policy.line.accrual.job.form hr.policy.line.accrual.job form New
policy_group_view_form hr.policy.group.form.accrinherit hr.policy.group xpath Inherits hr_policy_group.policy_group_view_form
Models touched (5)

New fields (0)

No new fields.

Public methods (2)
  • holidays_refuse(self, cr, uid, ids, context=None)
  • holidays_validate(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (2)
  • get_latest_policy(self, cr, uid, policy_group, dToday, context=None)
    Return an accrual policy with an effective date before dToday but greater than all the others
  • try_calculate_accruals(self, cr, uid, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/9.0/hr_policy_accrual
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERS
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/hr:
    - hr_contract_state
    - hr_contract_init
    - hr_job_categories
    - hr_security
    - hr_employee_seniority
    - hr_policy_group
odoo/odoo:
    - hr_contract
    - base_action_rule
    - base
    - resource
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - hr
    - web_tip
    - hr_payroll
    - hr_holidays
    - calendar
    - web_calendar
    - report
    - decimal_precision
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Define Time Accrual Policies
============================
Define properties of a leave accrual policy. The accrued time is calculated
based on the length of service of the employee. An additional premium may be
added on the base rate based on additional months of service.
This policy is ideal for annual leave accruals. If the type of accrual is
'Standard' time is accrued and withdrawn manually. However, if the type is
'Calendar' the time is accrued (and recorded) at a fixed frequency.
    

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
accr_policy_line_form_view hr.policy.line.accrual.form hr.policy.line.accrual form New
accr_policy_line_tree_view hr.policy.line.accrual.tree hr.policy.line.accrual tree New
accr_policy_view_form hr.policy.accrual.form hr.policy.accrual form New
accr_policy_view_tree hr.policy.accrual.tree hr.policy.accrual tree New
accrual_line_job_form_view hr.policy.line.accrual.job.form hr.policy.line.accrual.job form New
policy_group_view_form hr.policy.group.form.accrinherit hr.policy.group xpath Inherits hr_policy_group.policy_group_view_form
Models touched (5)

New fields (0)

No new fields.

Public methods (2)
  • holidays_refuse(self, cr, uid, ids, context=None)
  • holidays_validate(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (2)
  • get_latest_policy(self, cr, uid, policy_group, dToday, context=None)
    Return an accrual policy with an effective date before dToday but greater than all the others
  • try_calculate_accruals(self, cr, uid, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/8.0/hr_policy_accrual
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSStéphane Bidoul, Pedro M. Baeza
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/hr:
    - hr_contract_state
    - hr_contract_init
    - hr_job_categories
    - hr_security
    - hr_employee_seniority
    - hr_policy_group
odoo/odoo:
    - hr_contract
    - base_action_rule
    - base
    - resource
    - mail
    - base_setup
    - web_kanban
    - web
    - hr
    - board
    - hr_payroll
    - hr_holidays
    - calendar
    - web_calendar
    - decimal_precision
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Define Time Accrual Policies
============================
Define properties of a leave accrual policy. The accrued time is calculated
based on the length of service of the employee. An additional premium may be
added on the base rate based on additional months of service.
This policy is ideal for annual leave accruals. If the type of accrual is
'Standard' time is accrued and withdrawn manually. However, if the type is
'Calendar' the time is accrued (and recorded) at a fixed frequency.
    

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
accr_policy_line_form_view hr.policy.line.accrual.form hr.policy.line.accrual form New
accr_policy_line_tree_view hr.policy.line.accrual.tree hr.policy.line.accrual tree New
accr_policy_view_form hr.policy.accrual.form hr.policy.accrual form New
accr_policy_view_tree hr.policy.accrual.tree hr.policy.accrual tree New
accrual_line_job_form_view hr.policy.line.accrual.job.form hr.policy.line.accrual.job form New
policy_group_view_form hr.policy.group.form.accrinherit hr.policy.group xpath Inherits hr_policy_group.policy_group_view_form
Models touched (5)

New fields (0)

No new fields.

Public methods (2)
  • holidays_refuse(self, cr, uid, ids, context=None)
  • holidays_validate(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (2)
  • get_latest_policy(self, cr, uid, policy_group, dToday, context=None)
    Return an accrual policy with an effective date before dToday but greater than all the others
  • try_calculate_accruals(self, cr, uid, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/7.0/hr_policy_accrual
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSLorenzo Battistini, Alexandre Fayolle, Michael Telahun Makonnen, Sandy Carter, OCA Transbot, moylop260, dufresnedavid
WEBSITE
WEBSITEhttp://miketelahun.wordpress.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/hr:
    - hr_accrual
    - hr_holidays_extension
    - hr_public_holidays
    - hr_schedule
    - hr_contract_init
    - hr_job_categories
    - hr_security
    - hr_simplify
    - hr_employee_state
    - hr_contract_state
    - hr_employee_seniority
    - hr_policy_group
odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - process
    - board
    - hr_holidays
    - base_calendar
    - base_status
    - base_action_rule
    - hr_attendance
    - hr_contract
    - hr_payroll
    - decimal_precision
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Define Time Accrual Policies
============================
Define properties of a leave accrual policy. The accrued time is calculated
based on the length of service of the employee. An additional premium may be
added on the base rate based on additional months of service.
This policy is ideal for annual leave accruals. If the type of accrual is
'Standard' time is accrued and withdrawn manually. However, if the type is
'Calendar' the time is accrued (and recorded) at a fixed frequency.
    

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
accr_policy_line_form_view hr.policy.line.accrual.form hr.policy.line.accrual form New
accr_policy_line_tree_view hr.policy.line.accrual.tree hr.policy.line.accrual tree New
accr_policy_view_form hr.policy.accrual.form hr.policy.accrual form New
accr_policy_view_tree hr.policy.accrual.tree hr.policy.accrual tree New
accrual_line_job_form_view hr.policy.line.accrual.job.form hr.policy.line.accrual.job form New
policy_group_view_form hr.policy.group.form.accrinherit hr.policy.group xpath Inherits hr_policy_group.policy_group_view_form
Models touched (5)

New fields (0)

No new fields.

Public methods (2)
  • holidays_refuse(self, cr, uid, ids, context=None)
  • holidays_validate(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (2)
  • get_latest_policy(self, cr, uid, policy_group, dToday, context=None)
    Return an accrual policy with an effective date before dToday but greater than all the others
  • try_calculate_accruals(self, cr, uid, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.