OdooWiki OCA HUB
TMS License: AGPL-3

The TMS - Expense module allows drivers and users to register expenses in trips. This module creates two new expense categories: Fuel and Toll expenses.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Link expenses (fuel, tolls, hotel) to transport trips and drivers. Trip forms show an Expenses tab and a counter button, and expenses get a Trip button and filter.

This module connects the Expenses app with transport trips, so costs incurred on the road can be recorded against the right trip and driver.

On a trip (tms.order) you get a new Expenses tab where you can add expense lines directly; the driver's related employee is filled in automatically. A counter button in the trip's button box shows how many expenses are linked and opens the list of those expenses.

On each expense (hr.expense) a Trip field and a Trip button appear, letting you jump from the expense back to the trip it belongs to. The expense search view gains a Trip filter to find all expenses that are linked to a trip.

Two ready-made expense products are created: Fuel and Toll, both usable in expenses but not for sales or purchases.

Automatic behaviour: when a trip is moved to a completed stage, any draft expenses attached to it are submitted automatically. When a driver is created (and is not external), an employee record is created for them if one with the same name does not already exist, and existing drivers are converted to employees when the module is installed.

Depends on

tmshr_expense

Required by other modules

Models and fields (3)
  • tms.order · extends an existing modelemployee_id (Driver Employee), expense_ids, expense_count
  • hr.expense · extends an existing modeltrip_id
  • tms.driver · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/stock-logistics-transport.

terminal Installation and usage

OCA documentation · Odoo 19.0

There are two ways of installing the module:

Transport settings

  • Go to Transport app.
  • Go to Configuration > Settings.
  • In the Trip block, enable the "Manage trip-expenses" setting.

Apps list

  • Go to Apps.
  • Search for TMS - Expense module.
  • Install the module.

Create expenses in trips

  • Go to Transport module.
  • Select or create a new trip.
  • In the Expense page, create a new expense. The driver is set as the default employee that registered the expense.
  • When the trip is completed, the expense is automatically submitted.

No verified information in OCA: Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.