Repository
OCA/vertical-travel · module folder · Try on Runboat
Module version
0.1.0
Category
Customer Relationship Management
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
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
OCA/partner-contact:
OCA/vertical-travel:
odoo/odoo:
- web
- bus
- hr
Python dependencies
None
System dependencies
None
Required by
travel_journey_hr, travel_journey_other, travel_journey_plane, travel_journey_rail
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)

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
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)
  • arrival Datetime
    help='Desired date and time of Arrival.' string='Desired Arrival'
  • baggage_qty Integer
    help='Number of articles in baggage.' string='Baggage Quantity'
  • baggage_weight Float
    help='Weight of baggage.' string='Baggage Weight'
  • baggage_weight_uom Many2one → product.uom
    help='Unit of Measure for Baggage Weight' string='Baggage Weight Unit of Measure' args: 'product.uom'
  • cancellation Text
    help='Notes on cancellation.' args: 'Cancellation'
  • class_id Many2one → travel.journey.class
    default='_default_class' help='Desired class of voyage.' required=True string='Class' args: 'travel.journey.class'
  • comment Text
    args: 'Comments'
  • date_start Date
    compute='_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_stop Date
    compute='_estimate_date_stop' fnct_inv='_inv_estimate_date_stop' help='Best estimate of end date calculated from filled fields.' string='Stop Date' type='date'
  • departure Datetime
    help='Desired date and time of departure.' string='Desired Departure'
  • destination Many2one → res.better.zip
    help='Destination city of travel.' required='True' string='Destination' args: 'res.better.zip'
  • is_return Boolean
    help='Generate a return trip' string='Return Trip'
  • journey_type Selection
    help='Travel journey type.' selection='_get_journey_type' string='Travel journey type'
  • origin Many2one → res.better.zip
    help='Source city of travel.' required='True' string='Origin' args: 'res.better.zip'
  • passenger_id Many2one → travel.passenger
    help='Passenger on this journey.' required=True string='Passenger' args: 'travel.passenger'
  • reservation Char
    help='Number of the ticket reservation.' string='Reservation Number'
  • return_arrival Datetime
    args: 'Desired Arrival (return)'
  • return_departure Datetime
    args: 'Desired Departure (return)'
  • return_destination Many2one → res.better.zip
    string='Destination (return)' args: 'res.better.zip'
  • return_origin Many2one → res.better.zip
    string='Origin (return)' args: 'res.better.zip'
  • state Selection
    related='passenger_id.travel_state' store=True string='State'
  • travel Char
    related='passenger_id.travel_name' store=True string='Travel'
Public methods (16)
  • 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.one
    If 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…