Travel Journey
travel_journey · OCA/vertical-travel
Health
70/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by20/254 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
4
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.08 MB
Module directory on disk
Code analysis
23 migration notes
7 models
7 views
0 HTTP endpoints
Migration considerations
TravelJourney— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceTravelJourney— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (24 methods) migration-api-multi-one · sourcetravel_journey_class— Class 'travel_journey_class' 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_journey_class— Class 'travel_journey_class' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcetravel_journey_form_view— 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 · sourcetravel_journey_import— Class 'travel_journey_import' 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 · sourcetravel_journey_import— Class 'travel_journey_import' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcetravel_journey_list_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcetravel_journey_type— Class 'travel_journey_type' 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_journey_type— Class 'travel_journey_type' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcetravel_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_summary— Class 'travel_summary' 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 · sourcetravel_summary— Class 'travel_summary' 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 · 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 · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) 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
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) 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 journey
This module allows to add a starting point and destination to a travel.
Contributors
- Sandy Carter (sandy.carter@savoirfairelinux.com)
- El Hadji Dem (elhadji.dem@savoirfairelinux.com)
- Joao Alfredo Gama Batista (joao.gama@savoirfairelinux.com)
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- travel_journey_hr, travel_journey_other, travel_journey_plane, travel_journey_rail
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
travel_journey_form_view |
Passenger Journey Form View | travel.journey | form | New |
travel_journey_gantt_view |
Travel Journey Gantt View | travel.journey | gantt | New |
travel_journey_list_view |
Travel Journey List View | travel.journey | tree | New |
travel_journey_search |
Travel Journey Search | travel.journey | search | New |
travel_passenger_form_view |
Travel Passenger Form View | travel.passenger | form | Inherits travel.travel_passenger_form_view |
travel_summary_view |
Travel Summary | travel.summary | form | New |
view_travel_journey_import |
Import from other passengers form | travel.journey.import | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
New fields (22)
-
arrivalDatetimehelp='Desired date and time of Arrival.'string='Desired Arrival' -
baggage_qtyIntegerhelp='Number of articles in baggage.'string='Baggage Quantity' -
baggage_weightFloathelp='Weight of baggage.'string='Baggage Weight' -
baggage_weight_uomMany2one → product.uomhelp='Unit of Measure for Baggage Weight'string='Baggage Weight Unit of Measure' args: 'product.uom' -
cancellationTexthelp='Notes on cancellation.' args: 'Cancellation' -
class_idMany2one → travel.journey.classdefault='_default_class'help='Desired class of voyage.'required=Truestring='Class' args: 'travel.journey.class' -
commentTextargs: 'Comments' -
date_startDatecompute='_estimate_date_start'fnct_inv='_inv_estimate_date_start'help='Best estimate of start date calculated from filled fields.'string='Start Date'type='date' -
date_stopDatecompute='_estimate_date_stop'fnct_inv='_inv_estimate_date_stop'help='Best estimate of end date calculated from filled fields.'string='Stop Date'type='date' -
departureDatetimehelp='Desired date and time of departure.'string='Desired Departure' -
destinationMany2one → res.better.ziphelp='Destination city of travel.'required='True'string='Destination' args: 'res.better.zip' -
is_returnBooleanhelp='Generate a return trip'string='Return Trip' -
journey_typeSelectionhelp='Travel journey type.'selection='_get_journey_type'string='Travel journey type' -
originMany2one → res.better.ziphelp='Source city of travel.'required='True'string='Origin' args: 'res.better.zip' -
passenger_idMany2one → travel.passengerhelp='Passenger on this journey.'required=Truestring='Passenger' args: 'travel.passenger' -
reservationCharhelp='Number of the ticket reservation.'string='Reservation Number' -
return_arrivalDatetimeargs: 'Desired Arrival (return)' -
return_departureDatetimeargs: 'Desired Departure (return)' -
return_destinationMany2one → res.better.zipstring='Destination (return)' args: 'res.better.zip' -
return_originMany2one → res.better.zipstring='Origin (return)' args: 'res.better.zip' -
stateSelectionrelated='passenger_id.travel_state'store=Truestring='State' -
travelCharrelated='passenger_id.travel_name'store=Truestring='Travel'
-
arrival_date_get(self)@api.one -
arrival_time_get(self)@api.one -
check_date(self)@api.one@api.constrains('departure', 'arrival') -
check_date_exists(self)@api.one@api.constrains('departure', 'arrival') -
check_date_exists_return(self)@api.one@api.constrains('is_return', 'return_departure', 'return_arrival') -
check_date_return(self)@api.one@api.constrains('return_departure', 'return_arrival') -
check_uom(self)@api.one@api.constrains('baggage_weight', 'baggage_weight_uom') -
company_get(self)@api.one -
create(self, vals)@api.oneIf is_return is checked, create a return trip after. -
departure_date_get(self)@api.one -
departure_time_get(self)@api.one -
destination_get(self)@api.one -
name_get(self)@api.multi -
onchange_destination(self)@api.onchange('destination') -
onchange_origin(self)@api.onchange('origin') -
origin_get(self)@api.one
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
cancel(self, cr, uid, ids, context=None) -
data_import(self, cr, uid, ids, context=None)Import journey information from other passenger
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (3)-
export_excel(self, cr, uid, ids, context=None)Export a journey summary an excel file This reopens the current wizard with a download link to the gathered data, instead of populating the tree view. -
get_excel_columns(self, context=None) -
produce_summary(self, cr, uid, travel, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…