TIP: You can type at any time to perform a new search.
Absence Policy
hr_policy_absence · OCA/hr
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
policy_absence— Class 'policy_absence' 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 · sourcepolicy_absence— Class 'policy_absence' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcepolicy_group— Class 'policy_group' 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 · sourcepolicy_group— Class 'policy_group' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcepolicy_line_absence— Class 'policy_line_absence' 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 · sourcepolicy_line_absence— Class 'policy_line_absence' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceabsence_policy_line_tree_view— View 'absence_policy_line_tree_view' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceabsence_policy_view_tree— View 'absence_policy_view_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · 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
- Generic Modules/Human Resources
- Folder size
- 0.02 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://miketelahun.wordpress.com
- Last tracking update
- 2026-08-07 07:17:50
- Authors
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Maintainers
- Michael Telahun Makonnen <mmakonnen@gmail.com>, Odoo Community Association (OCA)
- Committers
- Pedro M. Baeza, Iryna Vushnevska
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Define Absence Policies ======================== Define properties of an absence policy, such as: * Type (paid, unpaid) * Rate (multiplier of base wage)
Code Analysis
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
absence_policy_line_form_view |
hr.policy.line.absence.form | hr.policy.line.absence | form | New |
absence_policy_line_tree_view |
hr.policy.line.absence.tree | hr.policy.line.absence | tree | New |
absence_policy_view_form |
hr.policy.absence.form | hr.policy.absence | form | New |
absence_policy_view_tree |
hr.policy.absence.tree | hr.policy.absence | tree | New |
policy_group_view_form |
hr.policy.group.form.absence.inherit | hr.policy.group | form | Inherits hr_policy_group.policy_group_view_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (0)
No new fields.
Public methods (3)-
get_codes(self, cr, uid, idx, context=None) -
paid_codes(self, cr, uid, idx, context=None) -
unpaid_codes(self, cr, uid, idx, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
onchange_holiday(self, cr, uid, ids, holiday_status_id, context=None)
Loading…
Loading…
Loading…