TIP: You can type at any time to perform a new search.
Overtime Policy
hr_policy_ot · OCA/hr
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
ot_policy_line_form_view— For a target of Odoo 17.0+: view 'ot_policy_line_form_view' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · 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_ot— Class 'policy_line_ot' 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_ot— Class 'policy_line_ot' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcepolicy_ot— Class 'policy_ot' 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_ot— Class 'policy_ot' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceot_policy_line_tree_view— View 'ot_policy_line_tree_view' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceot_policy_view_tree— View 'ot_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.01 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 Overtime Policies ======================== Define properties of an overtime policy, such as: * Type (daily, weekly, or holiday) * Rate (multiplier of base wage) * Active Hours
Code Analysis
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ot_policy_line_form_view |
hr.policy.line.ot.form | hr.policy.line.ot | form | New |
ot_policy_line_tree_view |
hr.policy.line.ot.tree | hr.policy.line.ot | tree | New |
ot_policy_view_form |
hr.policy.ot.form | hr.policy.ot | form | New |
ot_policy_view_tree |
hr.policy.ot.tree | hr.policy.ot | tree | New |
policy_group_view_form |
hr.policy.group.form.otinherit | 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 (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (6)-
daily_codes(self, cr, uid, idx, context=None) -
get_codes(self, cr, uid, idx, context=None) -
holiday_codes(self, cr, uid, idx, context=None) -
restday2_codes(self, cr, uid, idx, context=None) -
restday_codes(self, cr, uid, idx, context=None) -
weekly_codes(self, cr, uid, idx, context=None)
Loading…
Loading…
Loading…