Payroll Extension
hr_payroll_extension · OCA/hr
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 139 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis
5 migration notes
6 models
1 view
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
hr_payslip— Class 'hr_payslip' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (6 occurrences in this file) migration-old-api-base · sourcehr_payslip_line— Class 'hr_payslip_line' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (6 occurrences in this file) migration-old-style-fields · sourceview_salary_rule_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.decimal_precision`) (5 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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.