Repository
OCA/hr · module folder · Try on Runboat
Module version
1.0
Category
Human Resources
Folder size
0.12 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
http://miketelahun.wordpress.com
Last tracking update
2026-08-07 06:56:12
Authors
Odoo Community Association (OCA), Michael Telahun Makonnen
Maintainers
Odoo Community Association (OCA), Michael Telahun Makonnen
Committers
Maxime Chambreuil, Alexandre Fayolle, Michael Telahun Makonnen, Sandy Carter, OCA Transbot, moylop260, dufresnedavid
Odoo dependencies
Python dependencies
python-dateutil
System dependencies
None
Required by
None
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 form Inherits hr_payroll.hr_salary_rule_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.