Import holidays in timesheets
hr_timesheet_holidays · OCA/timesheet
Renamed to hr_timesheet_holiday in 8.0
-
Security25/25No findings
-
Activityn/aNo commit data
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
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
HolidaysImport— Class 'HolidaysImport' 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 · sourceHolidaysImport— Class 'HolidaysImport' 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 · sourceHrHolidaysStatus— Class 'HrHolidaysStatus' 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 · sourceHrHolidaysStatus— Class 'HrHolidaysStatus' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceResCompany— Class 'ResCompany' 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 · sourceResCompany— Class 'ResCompany' 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 · 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
Wizard to import holidays in the current timesheet
This module adds a relation between the Leave Types and the Analytic Accounts. The Timesheet lines are created on the Analytic Account defined on the Leave Type.
The hours to input per day is configurable at company level.
Limitations:
- Consider that the work days are Monday to Friday
- The wizard creates the attendances each day with Sign-ins at 00:00 and Sign-outs at (00:00 + configured timesheet hours per day).
Contributors
- Jean-Baptiste Aubort jean-baptiste.aubort@camptocamp.com
- Guewen Baconnier guewen.baconnier@camptocamp.com
- Yannick Vaucher yannick.vaucher@camptocamp.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 |
|---|---|---|---|---|
edit_holiday_status_form1 |
hr.holidays.status.form | hr.holidays.status | form | Inherits hr_holidays.edit_holiday_status_form |
view_company_inherit_form |
res.company.form.inherit | res.company | form | Inherits base.view_company_form |
view_holiday_status_tree1 |
hr.holidays.status.tree | hr.holidays.status | tree | Inherits hr_holidays.view_holiday_status_normal_tree |
view_hr_timesheet_holidays_import |
hr.timesheet.holidays.import | hr.timesheet.holidays.import | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
import_holidays(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…