OdooWiki OCA HUB
Field Service License: AGPL-3

The TMS - Accounting manages the accounting processes for the TMS modules. This module enables features such as purchase orders invoicing, sale order invoicing and analytic accounting.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Links transport trips and routes to accounting: invoices and bills can be created automatically when a trip is completed, and analytic accounts track income and expenses per trip or route.

This module connects the transport (TMS) side of Odoo with accounting. On a trip (tms.order) you get buttons showing how many Invoices and Bills are linked, plus a button to open its Analytic Account. A new option "Create invoices and bills when completed?" can be ticked on a trip; when the trip reaches a completed stage, the related sales order is invoiced and the related purchase orders are billed automatically.

Trips and routes each get their own analytic account, created automatically when the user belongs to the matching access group. Analytic plans named "Routes" and "Trips" are provided and marked as used for transports. In Settings you can choose which analytic plans are used for trips and routes.

Analytic entries posted on those accounts update the trip or route totals: negative amounts increase Total Expenses, positive amounts increase Total Income, and Total Revenue is income minus expenses. These figures appear on the trip and route forms and in graph and pivot reports, including a new Routes report under the Reporting menu.

Sales order lines linked to trips get their analytic distribution filled in automatically, and invoices carry a Factor and Factor UoM that adjust invoiced quantities. Expenses and purchase order lines linked to a trip also receive the trip's analytic distribution.

Menus it adds

Routes
Models and fields (12)
  • tms.order · extends an existing modelbill_count, total_income, invoice_count, total_revenue, create_invoice (Create invoices and bills when completed?), total_expenses, analytic_account_id
  • tms.route · extends an existing modeltotal_income, total_revenue, total_expenses, analytic_plan_id, analytic_account_id
  • hr.expense · extends an existing model
  • sale.order · extends an existing model
  • account.move · extends an existing modelhas_tms_order
  • sale.order.line · extends an existing model
  • account.move.line · extends an existing modeltms_factor, tms_factor_uom
  • purchase.order.line · extends an existing model
  • res.config.settings · extends an existing modeltms_analytic_plan, tms_analytic_plan_domain, group_tms_order_analytic_plan, group_tms_route_analytic_plan
  • account.analytic.line · extends an existing model
  • account.analytic.plan · extends an existing modeltms_flag (Used for Transports?)
  • account.analytic.account · extends an existing modeltrip_id, route_id

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 Trips block, enable the "Manage Trips Accounting" setting.

Apps list

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

Analytic Distribution

  • Go to Transport module.
  • Go to Configuration > Settings.
  • In the trips block, check the "Analytic Accounting" setting.
  • Check the "Trips" box to create analytic accounts for each trip using this plan.
  • If routes are enabled, check the "Routes" box to create analytic accounts for each route using this plan.

Create sale order invoices

  • Go to Sale module.
  • Create a new sale quotation.
  • Add the trips to the Products page in the order.
  • When saving, the trips are created as drafts.
  • In the trips, check the "Create invoices and bills when completed?" box.
  • Change the state of the trip to "Completed" and the invoices will be generated (Sale order needs to be confirmed).

Create purchase bill

  • Go to Transport module.
  • Create or select a trip.
  • Add purchases to the Purchase page.
  • Check the "Create invoices and bills when completed?" box.
  • Change the state of the trip to "Completed" and the bills will be generated (Purchase order needs to be confirmed).

Analytic Accounting

  • When adding trips to sale orders, the analytic account will be set by default with the trip account and the route account (Depending on which plans are enabled in the configration).
  • When adding purchase orders to trips, the analytic account will be set by default with the trip account and the route account (Depending on which plans are enabled in the configration).
  • When adding expenses to trips, the analytic account will be set by default with the trip account and the route account (Depending on which plans are enabled in the configration).
  • In the section of Transport > Reporting, the total revenue can be seen for each trip and route according to the analytic accounts.
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.