OdooWiki OCA HUB
TMS License: AGPL-3

The TMS - Purchase module manages purchase requests to drivers and other suppliers. This module provides features such as create purchase orders from trips and purchase vehicles.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Links purchase orders to trips and vehicles in the transport management system, so you can buy vehicles from suppliers and see which trip or driver each purchase belongs to.

This module connects purchasing with transport management. On a trip (tms.order) you get a "Purchases" button showing how many purchase orders are linked to that trip; clicking it opens the list of those orders, and any new purchase order created from there is automatically attached to the trip.

On a purchase order you get two extra buttons: one showing the number of vehicles linked to the order and opening their list, and one opening the related trip. A new "Trip" tab on the purchase order form lets you pick the trip manually.

Vehicles (fleet.vehicle) gain a link to a purchase order, shown as a "Purchase order" button on the vehicle form that jumps straight to that order. When a vehicle is received through a purchase, the system fills in the purchase order, the order date, the destination location and the vehicle's cost from the purchase line.

On a driver record, the existing purchase orders button now opens the purchase orders of that driver's contact. All of this is only visible to users with purchasing rights where the code restricts it.

Depends on

tmstms_productpurchase_stock

Required by other modules

Models and fields (5)
  • tms.order · extends an existing modelpurchase_ids, purchase_order_count
  • stock.move · extends an existing model
  • tms.driver · extends an existing model
  • fleet.vehicle · extends an existing modelpurchase_order_id
  • purchase.order · extends an existing modeltrip_id, vehicle_ids, vehicle_count, order_vehicle_count

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 17.0

Confirmed on 2026-11-03 in branch 17.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 trip purchases" setting.

Apps list

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

Purchase vehicles

  • Go to Purchase module.
  • Create a new purchase quotation for the Demo Cargo Truck product (demo data).
  • Add the vehicle product and confirm the order.
  • Click Receive Products or use the smart button to validate the receipt.
  • The fleet vehicle is created with the purchase order date, receiving location, and line amount.

Purchase from trips

  • Go to Transport module.
  • Create or select a trip.
  • Click the Purchases smart button to view linked purchase orders or create a new one.
  • The purchase will be linked to the trip automatically.

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.