TIP: You can type at any time to perform a new search.
Payroll Extension
hr_payroll_extension · OCA/hr
Security findings
Migration considerations
- Imports from the old `openerp.addons.decimal_precision` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
hr_attendance— Class 'hr_attendance' 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. migration-old-api-base · sourcehr_contract— Class 'hr_contract' 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. migration-old-api-base · sourcehr_contract— Class 'hr_contract' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_contract— Class 'hr_contract' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_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. migration-old-api-base · sourcehr_payslip_line— Class 'hr_payslip_line' 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. 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=`. migration-old-style-fields · sourcehr_payslip_worked_days— Class 'hr_payslip_worked_days' 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. migration-old-api-base · sourcehr_payslip_worked_days— Class 'hr_payslip_worked_days' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_payslip_worked_days— Class 'hr_payslip_worked_days' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_salary_rule— Class 'hr_salary_rule' 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. migration-old-api-base · sourcehr_salary_rule— Class 'hr_salary_rule' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_salary_rule_form— For a target of Odoo 17.0+: view 'view_salary_rule_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- 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 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.