Employee citizenship
hr_citizenship · OCA/hr
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 93 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 10.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.04 MB
Module directory on disk
Code analysis
3 migration notes
3 models
2 views
0 HTTP endpoints
Migration considerations
Applicant— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceCitizenship— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceview_form_applicant_citizenship— 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 · 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 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_form_applicant_citizenship |
applicant citizenship | hr.applicant | form | Inherits hr_recruitment.crm_case_form_view_job |
view_form_employee_citizenship |
employee citizenship | hr.employee | form | Inherits hr.view_employee_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
citizenship_idsOne2many → res.citizenshipcomodel_name='res.citizenship'inverse_name='applicant_id'string='Multi citizenship'
-
create_employee_from_applicant(self)@api.multiLink citizenship docs to new employee
New fields (4)
-
citizenship_idsOne2many → res.citizenshipcomodel_name='res.citizenship'inverse_name='employee_id'string='Multi citizenship' -
country_idMany2onecompute='_compute_passport_data' -
identification_idCharcompute='_compute_passport_data'store='True' -
passport_idCharcompute='_compute_passport_data'
No public methods.
New fields (6)
-
applicant_idMany2one → hr.applicantcomodel_name='hr.applicant'ondelete='cascade' -
country_idMany2one → res.countrycomodel_name='res.country'required=Truestring='Nationality (Country)' -
employee_idMany2one → hr.employeecomodel_name='hr.employee'ondelete='cascade' -
identification_idCharstring='Identification No' -
passport_idCharstring='Passport No' -
sequenceIntegerstring='Sequence'
No public methods.