Employee Presence Policy
hr_policy_presence · 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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.01 MB
Module directory on disk
Code analysis
5 migration notes
3 models
5 views
0 HTTP endpoints
Migration considerations
policy_presence— Class 'policy_presence' 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. (3 occurrences in this file) migration-old-api-base · sourcepolicy_presence— Class 'policy_presence' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (5 occurrences in this file) migration-old-style-fields · sourcepresence_policy_line_form_view— 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 · sourcepresence_policy_line_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) 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
Define Employee Presence Policies
Define properties of an employee presence policy, such as: * The number of regular working hours in a day * The maximum possible hours * Rate (multiplier of base wage)
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
policy_group_view_form |
hr.policy.group.form.presenceinherit | hr.policy.group | form | Inherits hr_policy_group.policy_group_view_form |
presence_policy_line_form_view |
hr.policy.line.presence.form | hr.policy.line.presence | form | New |
presence_policy_line_tree_view |
hr.policy.line.presence.tree | hr.policy.line.presence | tree | New |
presence_policy_view_form |
hr.policy.presence.form | hr.policy.presence | form | New |
presence_policy_view_tree |
hr.policy.presence.tree | hr.policy.presence | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
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 (1)-
get_codes(self, cr, uid, idx, context=None)
Loading…
Loading…
Loading…