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.0Adds 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.
Depends on
Menus it adds
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-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/fleet.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To 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.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.