OdooWiki OCA HUB

Fleet Vehicle Purchase Link

fleet_vehicle_purchase_link folder_open OCA/fleet open_in_new
Fleet License: AGPL-3

This module links fleet vehicles to purchases, allowing a vehicle to be set on each purchase order line and providing a smart button and menu to navigate between vehicles and their related purchases.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a smart button on the vehicle form showing how many purchase order lines reference that vehicle, and a Purchases menu under Fleet to list purchase orders that include a vehicle.

This module connects fleet vehicles with purchasing so users can see which purchases involve a given vehicle.

On each vehicle's form, a new smart button labelled "Purchase Lines" (with a shopping-cart icon) appears in the button box. It shows a count of purchase order lines linked to that vehicle, and the count updates automatically. Clicking the button opens a list of those purchase order lines, filtered to the current vehicle; when a new line is created from there, the vehicle is pre-filled.

A new "Purchases" menu is added under the Fleet menu, visible to Fleet users. It opens a list of purchase orders that contain at least one line with a vehicle assigned, so users can quickly find all purchases related to vehicles.

The module relies on the vehicle field already present on purchase order lines (provided by the base fleet-purchase module) and only adds the counting, the button and the menu. It touches the vehicle model fleet.vehicle and reads data from purchase.order.line and purchase.order.

Menus it adds

Purchases
Models and fields (1)
  • fleet.vehicle · extends an existing modelpurchase_line_count (Purchase Lines)

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: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to:

  • Go to the Purchase application and open or create a purchase order.
  • On each order line, set the related fleet vehicle.
  • Go to the Fleet application and open a vehicle to see the Purchases smart button with the count of linked purchase order lines; click it to list them.
  • Go to Fleet \> Fleet \> Purchases to list the purchase orders that have at least one line linked to a vehicle.

No verified information in OCA: Installation, 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.