Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.77 MB
Module directory on disk
Code analysis
1 migration note
6 models
5 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE hr_work_entry AS _hwe SET contract_id = result.contract_id FROM ( SELECT hc.id AS contract_id, array_agg(hwe.id) AS entry_ids FROM hr_work_entry AS hwe LEFT JOIN hr_contract AS hc ON hwe.employee_id=hc.employee_id AND hc.state in ('open', 'close') AND hwe.date_start >= hc.date_start AND hwe.date_stop < COALESCE(hc.date_end + integer '1', '9999-12-31 23:59:59') WHERE hwe.contract_id IS NULL GROUP BY hwe.employee_id, hc.id ) AS result WHERE _hwe.id = ANY(result.entry_ids)` - re-check the table/column names still match after upgrading. migration-raw-sql-write · 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
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 |
|---|---|---|---|---|
hr_contract_view_form_inherit_work_entry |
hr.contract.view.form.inherit.work.entry | hr.contract | form | Inherits hr_contract.hr_contract_view_form |
hr_work_entry_contract_type_view_form_inherit |
hr.work.entry.type.contract.view.form.inherit | hr.work.entry.type | form | Inherits hr_work_entry.hr_work_entry_type_view_form |
hr_work_entry_contract_view_calendar_inherit |
hr.work.entry.contract.view.calendar.inherit | hr.work.entry | calendar | Inherits hr_work_entry.hr_work_entry_view_calendar |
hr_work_entry_contract_view_form_inherit |
hr.work.entry.contract.view.form.inherit | hr.work.entry | form | Inherits hr_work_entry.hr_work_entry_view_form |
hr_work_entry_regeneration_wizard |
hr_work_entry_regeneration_wizard | hr.work.entry.regeneration.wizard | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (5)
-
date_generated_fromDatetimecopy=Falsedefault=<expr>readonly=Truerequired=Truestring='Generated From' -
date_generated_toDatetimecopy=Falsedefault=<expr>readonly=Truerequired=Truestring='Generated To' -
last_generation_dateDatereadonly=Truestring='Last Generation Date' -
work_entry_sourceSelectiondefault='calendar'help="\n Defines the source for work entries generation\n\n Working Schedule: Work entries will be generated from the working hours below.\n Attendances: Work entries will be generated from the employee's attendances. (requires Attendance app)\n Planning: Work entries will be generated from the employee's planning. (requires Planning app)\n "required=True args: [('calendar', 'Working Schedule')] -
work_entry_source_calendar_invalidBooleancompute='_compute_work_entry_source_calendar_invalid'
-
generate_work_entries(self, date_start, date_stop, force=False) -
has_static_work_entries(self) -
write(self, vals)
New fields (0)
No new fields.
Public methods (1)-
generate_work_entries(self, date_start, date_stop, force=False)
New fields (3)
-
contract_idMany2one → hr.contractrequired=Truestring='Contract' args: 'hr.contract' -
employee_idMany2onedomain=[('contract_ids.state', 'in', ('open', 'pending'))] -
work_entry_sourceSelectionrelated='contract_id.work_entry_source'
-
create(self, vals_list)@api.model_create_multi -
init(self)
New fields (10)
-
date_fromDatedefault=<expr>required=True args: 'From' -
date_toDatecompute='_compute_date_to'default=<expr>readonly=Falserequired=Truestore=True args: 'To' -
earliest_available_dateDatecompute='_compute_earliest_available_date' args: 'Earliest date' -
earliest_available_date_messageChardefault=''readonly=Truestore=False -
employee_idsMany2many → hr.employeedomain=<expr>required=Truestring='Employees' args: 'hr.employee' -
latest_available_dateDatecompute='_compute_latest_available_date' args: 'Latest date' -
latest_available_date_messageChardefault=''readonly=Truestore=False -
search_criteria_completedBooleancompute='_compute_search_criteria_completed' -
validBooleancompute='_compute_valid' -
validated_work_entry_idsMany2many → hr.work.entrycompute='_compute_validated_work_entry_ids'string='Work Entries Within Interval' args: 'hr.work.entry'
-
regenerate_work_entries(self)
New fields (1)
-
is_leaveBooleandefault=Falsehelp='Allow the work entry type to be linked with time off types.'string='Time Off'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…