Employee Infraction Management
hr_infraction · OCA/hr
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 93 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
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
10 migration notes
6 models
10 views
0 HTTP endpoints
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. (4 occurrences in this file) migration-workflow-call · source
action_wizard— Class 'action_wizard' 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 · sourceaction_wizard— Class 'action_wizard' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcehr_infraction_action_wizard_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 · sourcehr_infraction_category— Class 'hr_infraction_category' 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. (5 occurrences in this file) migration-old-api-base · sourcehr_infraction_category— Class 'hr_infraction_category' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (7 occurrences in this file) migration-old-style-fields · sourcehr_infraction_category_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (4 occurrences in this file) migration-view-tree-tag · sourcehr_infraction_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. (2 occurrences in this file) migration-view-attrs-states · source- Since 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
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (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
Warning/Disciplinary Action Management
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 10
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_infraction_action_form |
hr.infraction.action.form | hr.infraction.action | form | New |
hr_infraction_action_tree |
hr.infraction.action.tree | hr.infraction.action | tree | New |
hr_infraction_action_wizard_form |
hr.infraction.action.wizard.form | hr.infraction.action.wizard | form | New |
hr_infraction_category_form |
hr.infraction.category.form | hr.infraction.category | form | New |
hr_infraction_category_tree |
hr.infraction.category.tree | hr.infraction.category | tree | New |
hr_infraction_form |
hr.infraction.form | hr.infraction | form | New |
hr_infraction_tree |
hr.infraction.tree | hr.infraction | tree | New |
hr_infraction_warning_form |
hr.infraction.warning.form | hr.infraction.warning | form | New |
hr_infraction_warning_tree |
hr.infraction.warning.tree | hr.infraction.warning | tree | New |
view_employee_form |
hr.employee.form.inherit.infraction | hr.employee | form | Inherits hr.view_employee_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
onchange_category(self, cr, uid, ids, category_id, context=None) -
unlink(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
unlink(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
create_action(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
unlink(self, cr, uid, ids, context=None)
Loading…
Loading…
Loading…