Payroll Extension

hr_payroll_extension
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/7.0/hr_payroll_extension
VERSION
VERSION 1.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen
COMMITTERS
COMMITTERSAlexandre Fayolle, Michael Telahun Makonnen, Sandy Carter, Maxime Chambreuil, 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_payroll_period
    - hr_contract_init
    - hr_job_categories
    - hr_security
    - hr_simplify
    - hr_employee_state
    - hr_contract_state
    - hr_payroll_register
    - hr_payslip_amendment
    - hr_public_holidays
    - hr_schedule
    - hr_policy_absence
    - hr_policy_group
    - hr_policy_ot
    - hr_policy_presence
odoo/odoo:
    - hr_attendance
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - process
    - board
    - hr_payroll
    - hr_contract
    - hr_holidays
    - base_calendar
    - base_status
    - base_action_rule
    - decimal_precision
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python-dateutil
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Extended set of Payroll Rules and Structures
============================================

    - Detailed calculation of worked hours, leaves, overtime, etc
    - Overtime
    - Paid and Unpaid Leaves
    - Federal Income Tax Withholding rules
    - Provident/Pension Fund contributions
    - Various Earnings and Deductions
    - Payroll Report
    

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_salary_rule_form hr.salary.rule.form.inherit hr.salary.rule data Inherits hr_payroll.hr_salary_rule_form
Models touched (6)

New fields (0)

No new fields.

Public methods (6)
  • partial_hours_on_day(self, cr, uid, contract, dtDay, active_after, begin, stop, tz, punches_list=None, context=None)
    Calculate the number of hours worked between begin and stop hours, but after active_after hours past the beginning of the first sign-in on specified date.
  • punch_ids_on_day(self, cr, uid, contract, dDay, punches_list=None, context=None)
    Return a list of database ids of punches for the day.
  • punch_names_on_day(self, cr, uid, contract, dDay, punches_list=None, context=None)
    Return a list of tuples containing in and corresponding out punches for the day.
  • punches_list_init(self, cr, uid, employee_id, pps_template, dFrom, dTo, context=None)
    Returns a dict containing a key for each day in range dFrom - dToday and a corresponding tuple containing two list: in punches, and the corresponding out punches
  • punches_list_search(self, cr, uid, ndtFrom, ndtTo, punches_list, context=None)
  • total_hours_on_day(self, cr, uid, contract, dDay, punches_list=None, context=None)
    Calculate the number of hours worked on specified date.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (10)
  • attendance_dict_hours_on_day(self, d, attendance_dict)
  • attendance_dict_init(self, cr, uid, contract, dFrom, dTo, context=None)
  • attendance_dict_list(self, att_dict)
  • get_payslip_lines(self, cr, uid, contract_ids, payslip_id, context)
  • get_utilities_dict(self, cr, uid, contract, payslip, context=None)
  • get_worked_day_lines(self, cr, uid, contract_ids, date_from, date_to, context=None)
    @param contract_ids: list of contract id @return: returns a list of dict containing the input that should be applied for the given contract between date_from and date_to
  • holidays_list_contains(self, d, holidays_list)
  • holidays_list_init(self, cr, uid, dFrom, dTo, context=None)
  • leaves_list_get_hours(self, cr, uid, employee_id, contract_id, sched_tpl_id, d, leaves_list, context=None)
    Return the number of hours of leave on a given date, d.
  • leaves_list_init(self, cr, uid, employee_id, dFrom, dTo, tz, context=None)
    Returns a list of tuples containing start, end dates for leaves within the specified period.

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.