HR Payroll Period
hr_payroll_period · OCA/payroll
Replaces
hr_period (14.0)OCA/hr 7.0 → OCA/payroll 14.0–16.0
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 9 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.29 MB
Module directory on disk
Code analysis
7 migration notes
8 models
15 views
0 HTTP endpoints
Migration considerations
hr_payslip_run_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 · sourceir_cron_hr_payroll_period— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourceview_date_range_type_hr_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_hr_fiscalyear_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 · sourceview_hr_fiscalyear_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_hr_period_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 · sourceview_hr_period_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 15
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_payslip_run_filter |
hr.payslip.run.period.search | hr.payslip.run | search | Inherits payroll.hr_payslip_run_view_search |
hr_payslip_run_form |
hr.payslip.run.period.form | hr.payslip.run | form | Inherits payroll.hr_payslip_run_view_form |
hr_payslip_run_tree |
hr.payslip.run.period.tree | hr.payslip.run | tree | Inherits payroll.hr_payslip_run_view_tree |
view_date_range_type_hr_form_view |
date.range.type.hr.form | date.range.type | form | New |
view_date_range_type_hr_tree |
date.range.type.hr.tree | date.range.type | tree | New |
view_hr_fiscalyear_form |
hr.fiscalyear.form | hr.fiscalyear | form | New |
view_hr_fiscalyear_search |
hr.fiscalyear.search | hr.fiscalyear | search | New |
view_hr_fiscalyear_tree |
hr.fiscalyear.tree | hr.fiscalyear | tree | New |
view_hr_payslip_by_employees |
hr_payroll_payslip_employees | hr.payslip.employees | Inherits payroll.view_hr_payslip_by_employees | |
view_hr_payslip_filter |
hr.payslip.period.select | hr.payslip | search | Inherits payroll.hr_payslip_view_search |
view_hr_payslip_form |
hr.payslip.period.form | hr.payslip | form | Inherits payroll.hr_payslip_view_form |
view_hr_payslip_tree |
hr.payslip.period.tree | hr.payslip | tree | Inherits payroll.hr_payslip_view_tree |
view_hr_period_form |
hr.period.form | hr.period | form | New |
view_hr_period_search |
hr.period.search | hr.period | search | New |
view_hr_period_tree |
hr.period.tree | hr.period | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 8
New fields (2)
-
hr_fiscal_yearBooleanstring='Is HR Fiscal Year?' -
hr_periodBooleanstring='Is HR period?'
No public methods.
New fields (1)
-
schedule_paySelectionindex=True args: get_schedules
No public methods.
New fields (1)
-
contract_idMany2one → hr.contractcomodel_name='hr.contract'search='_search_contract'
No public methods.
New fields (7)
-
payment_daySelectionstates={'draft': [('readonly', False)]} args: get_payment_days, 'Day of Payment' -
payment_weekSelectionstates={'draft': [('readonly', False)]} args: [('0', 'Same Week'), ('1', 'Following Week'), ('2', 'Second Following Week')], 'Week of Payment' -
payment_weekdaySelectionstates={'draft': [('readonly', False)]} args: [('0', 'Sunday'), ('1', 'Monday'), ('2', 'Tuesday'), ('3', 'Wednesday'), ('4', 'Thursday'), ('5', 'Friday'), ('6', 'Saturday')], 'Weekday of Payment' -
period_idsOne2many → hr.periodstates={'draft': [('readonly', False)]} args: 'hr.period', 'fiscalyear_id', 'Periods' -
schedule_paySelectiondefault='monthly'required=Truestates={'draft': [('readonly', False)]} args: get_schedules -
stateSelectiondefault='draft' args: [('draft', 'Draft'), ('open', 'Open'), ('done', 'Closed')], 'Status' -
type_idMany2onedefault=_default_typedomain=[('hr_fiscal_year', '=', True)]
-
button_confirm(self) -
button_set_to_draft(self) -
create_periods(self)Create every periods a payroll fiscal year -
cron_create_next_fiscal_year(self)@api.model -
get_generator_vals(self) -
get_ranges(self) -
onchange_schedule(self)@api.onchange('schedule_pay', 'date_start') -
search_period(self, number)
New fields (2)
-
date_paymentDatereadonly=Truestates={'draft': [('readonly', False)]} args: 'Date of Payment' -
hr_period_idMany2one → hr.periodreadonly=Truestates={'draft': [('readonly', False)]}string='Period' args: 'hr.period'
-
create(self, vals)@api.model -
onchange_company_id(self)@api.onchange('company_id', 'contract_id') -
onchange_contract_period(self)@api.onchange('contract_id') -
onchange_hr_period_id(self)@api.onchange('hr_period_id')
New fields (2)
-
company_idMany2one → res.companyreadonly=True args: 'res.company', 'Company' -
schedule_paySelectionreadonly=True args: get_schedules
No public methods.
New fields (5)
-
company_idMany2one → res.companydefault=<expr>states={'close': [('readonly', True)]} args: 'res.company', 'Company' -
date_paymentDatestates={'close': [('readonly', True)]} args: 'Date of Payment' -
hr_period_idMany2one → hr.periodstates={'close': [('readonly', True)]}string='Period' args: 'hr.period' -
nameChardefault=<expr>readonly=Truerequired=Truestates={'draft': [('readonly', False)]} -
schedule_paySelectionstates={'close': [('readonly', True)]} args: get_schedules
-
close_payslip_run(self) -
create(self, vals)@api.modelKeep compatibility between modules -
draft_payslip_run(self) -
get_default_schedule(self, company_id)@api.model -
get_payslip_employees_wizard(self)Replace the static action used to call the wizard -
onchange_company_id(self)@api.onchange('company_id', 'schedule_pay') -
onchange_period_id(self)@api.onchange('hr_period_id') -
update_periods(self)
New fields (9)
-
company_idMany2one → res.companyreadonly=Truerelated='fiscalyear_id.company_id'states={'draft': [('readonly', False)]}store=Truestring='Company' args: 'res.company' -
date_paymentDaterequired=Truestates={'draft': [('readonly', False)]} args: 'Date of Payment' -
fiscalyear_idMany2one → hr.fiscalyearondelete='cascade'required=Truestates={'draft': [('readonly', False)]} args: 'hr.fiscalyear', 'Fiscal Year' -
nameCharrequired=Truestates={'draft': [('readonly', False)]} -
numberIntegerrequired=Truestates={'draft': [('readonly', False)]} -
payslip_idsOne2many → hr.payslipreadonly=True args: 'hr.payslip', 'hr_period_id', 'Payslips' -
schedule_paySelectiondefault='monthly'required=Truestates={'draft': [('readonly', False)]} args: get_schedules -
stateSelectiondefault='draft'required=True args: [('draft', 'Draft'), ('open', 'Open'), ('done', 'Closed')], 'Status' -
type_idMany2onedefault=_default_typedomain=[('hr_period', '=', True)]
-
button_close(self) -
button_open(self) -
button_re_open(self) -
button_set_to_draft(self) -
get_next_period(self, company_id, schedule_pay)@api.modelGet the next payroll period to process :rtype: hr.period browse record
Loading…
Loading…
Loading…