TIP: You can type at any time to perform a new search.
Travel - HR Bindings
travel_hr · OCA/vertical-travel
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
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=`. migration-old-style-fields · sourcetravel_travel— Class 'travel_travel' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · 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/vertical-travel · module folder · Try on Runboat
- Module version
- 1.2
- Category
- Customer Relationship Management
- Folder size
- 0.01 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- http://www.savoirfairelinux.com
- Last tracking update
- 2026-08-07 07:17:53
- Authors
- Savoir-faire Linux, Odoo Community Association (OCA)
- Maintainers
- Savoir-faire Linux
- Committers
- Pedro M. Baeza, Stéphane Bidoul (ACSONE)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- travel_journey_hr
- 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)
Code Analysis
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…