Travel
travel · OCA/vertical-travel
Health
75/100
good
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by25/257 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
7
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.05 MB
Module directory on disk
Code analysis
9 migration notes
3 models
5 views
0 HTTP endpoints
Migration considerations
Travel— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (8 methods) migration-api-multi-one · sourceTravelConfiguration— 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 · sourceTravelPassenger— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceTravelPassenger— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourcetravel_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_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) 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
Travel management with passengers.
Contributors
- Sandy Carter (sandy.carter@savoirfairelinux.com)
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- travel_accommodation, travel_hr, travel_journey, travel_passport, travel_purchase, travel_rental_car, travel_rental_service
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
travel_calendar_view |
Travel Calendar View | travel.travel | calendar | New |
travel_form_view |
Travel Form View | travel.travel | form | New |
travel_passenger_form_view |
Travel Passenger Form View | travel.passenger | form | New |
travel_tree_view |
Travel Tree View | travel.travel | tree | New |
view_travel_configuration |
travel settings | travel.config.settings | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
basic_passenger_limitIntegerdefault=<expr>help='Limit number of passengers to organize travels by non-managers.' args: 'Basic Passenger Limit'
-
get_basic_passenger_limit(self)@api.modelReturn set passenger limit if it set, otherwise get default -
set_basic_passenger_limit(self)@api.oneSet passenger limit in config params
New fields (4)
-
partner_idMany2one → res.partnerhelp='Name of Passenger.'ondelete='cascade'required=True args: 'res.partner', 'Passenger' -
travel_idMany2one → travel.travelhelp='Travel for which the passenger is participating.' args: 'travel.travel', 'Travel' -
travel_nameCharrelated='travel_id.name'string='Travel' -
travel_stateSelectionrelated='travel_id.state'string='State'
-
action_passenger_form_view(self)@api.multiCall action, if there is a travel, put it in the name. Insert default dates in context -
name_get(self)@api.multiGet name of partner -
on_change_partner_id(self)@api.onchange('partner_id')Placeholder function to be inherited
New fields (7)
-
city_idsMany2many → res.better.ziphelp='Destination cities of travel.'string='Locations' args: 'res.better.zip' -
date_startDaterequired=True args: 'Start Date' -
date_stopDaterequired=True args: 'End Date' -
manager_onlyBooleanfunction='is_manager_only'help='Can only be edited by a manager' args: 'Manager' -
nameCharrequired=True args: 'Name of travel' -
passenger_idsOne2many → travel.passengerhelp='List of passengers.' args: 'travel.passenger', 'travel_id', 'Passengers' -
stateSelectiondefault='draft'readonly=True args: [('draft', 'Draft'), ('open', 'Saved'), ('booking', 'In Reservation'), ('reserved', 'Reserved'), ('confirmed', 'Confirmed'), ('done', 'Closed')], 'Status'
-
check_date(self)@api.constrains('date_start', 'date_stop') -
create(self, vals)@api.modelWarn if user tried to create travel with too many passengers for according to his security role. -
is_manager_only(self)@api.multi -
travel_book(self)@api.multiPut the state of the travel into booking -
travel_close(self)@api.multiPut the state of the travel into done -
travel_confirm(self)@api.multiPut the state of the travel into confirmed -
travel_open(self)@api.multiPut the state of the travel into open -
travel_reserve(self)@api.multiPut the state of the travel into reserved -
unlink(self)@api.multiPrevent deletion if travel isn't in draft Warn if ids being deleted contain a travel which has too many passengers for the current user to delete. -
write(self, vals)@api.multiWarn if user does not have rights to modify travel with current number of passengers or to add more than the limit.
Loading…
Loading…
Loading…