Payroll Analysis
hr_payroll_analysis · OCA/hr
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 141 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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.37 MB
Module directory on disk
Code analysis
15 migration notes
4 models
4 views
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. migration-old-api-base · sourcehr_payslip— Class 'hr_payslip' 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_analysis_line— Class 'hr_payslip_analysis_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_analysis_line— Class 'hr_payslip_analysis_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_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 · sourcepayroll_analysis— Class 'payroll_analysis' still inherits from the old-style `orm.TransientModel` 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 · sourcepayroll_analysis— Class 'payroll_analysis' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcepayroll_analysis_config_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_payslip_analysis_line_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 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
Payroll Analysis
This module adds a report over amounts of payslips line related to a a salary rule. It allows to group amounts by date, companies, salary rules and employees.
Contributors
- David Dufresne david.dufresne@savoirfairelinux.com
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_salary_rule_form |
hr.salary.rule.form | hr.salary.rule | form | Inherits hr_payroll.hr_salary_rule_form |
payroll_analysis_analytic_filter |
hr.payslip.analysis.line.filter | hr.payslip.analysis.line | search | New |
payroll_analysis_config_form |
hr.payroll.analysis.form | hr.payroll.analysis | form | New |
view_payslip_analysis_line_tree |
hr.payslip.analysis.line.tree | hr.payslip.analysis.line | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (2)-
onchange_period(self, cr, uid, ids, period, context=None) -
payroll_analysis_open_window(self, cr, uid, ids, context=None)This method returns an action that displays profitability lines requested in the wizard
New fields (0)
No new fields.
Public methods (4)-
cancel_sheet(self, cr, uid, ids, context=None)Make sure no analytic lines exist when a payslip is cancelled -
compute_analysis_lines(self, cr, uid, ids, context=None) -
process_sheet(self, cr, uid, ids, context=None)Create the analysis lines when the payslip is confirmed -
remove_analysis_lines(self, cr, uid, ids, context=None)Make sure no analysis line has already been computed
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
refresh_analysis_lines(self, cr, uid, ids, context=None)This method is used to refresh the analysis lines when a salary rule's include_in_payroll_analysis field is changed -
write(self, cr, uid, ids, vals, context=None)