Travel - HR Bindings
travel_hr · OCA/vertical-travel
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 7.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
AGPL-3
No conflicts with its dependencies
Folder size
0.01 MB
Module directory on disk
Code analysis
6 migration notes
2 models
3 views
0 HTTP endpoints
Migration considerations
travel_passenger— Class 'travel_passenger' 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 · sourcetravel_passenger— Class 'travel_passenger' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcetravel_travel— Class 'travel_travel' 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 · sourcetravel_travel— Class 'travel_travel' 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- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) 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
Travel - HR Bindings
Adds HR department to passenger view
Contributors
- Sandy Carter (sandy.carter@savoirfairelinux.com)
- Joao Alfredo Gama Batista (joao.gama@savoirfairelinux.com)
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
travel_form_view |
Travel Form HR View | travel.travel | form | Inherits travel.travel_form_view |
travel_passenger_form_view |
Travel Passenger HR Form View | travel.passenger | form | Inherits travel.travel_passenger_form_view |
travel_tree_view |
Travel Tree HR View | travel.travel | tree | Inherits travel.travel_tree_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (5)-
create(self, cr, uid, vals, context=None)Try and get an hr.department added manually as the field is readonly -
get_departments_from_partner_ids(self, cr, uid, partner_ids, context=None) -
get_employees_from_partner_ids(self, cr, uid, partner_ids, context=None)Given a list of partner_id find the hr.employee who have it in their related user's partner_id. -
on_change_partner_id(self, cr, uid, ids, partner_id, context=None)Try and get an hr.department from the res.partner -
write(self, cr, uid, ids, vals, context=None)Try and get an hr.department added manually as the field is readonly
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…