| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Fleet (fleet)
• Inventory (stock) • Discuss (mail) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 812 |
| Technical Name |
fuel_stock_consume |
| License | AGPL-3 |
| Website | https://github.com/Escodoo/fleet-addons |
Fuel Stock Consume

This module extends Odoo’s stock management to enable fuel consumption tracking through inventory operations. When fuel is taken from stock for vehicle consumption, the system:
- Requires vehicle identification and current odometer reading
- Automatically records odometer readings in fleet.vehicle.odometer
- Routes fuel movements to the correct location (vehicle-specific or default)
- Creates audit trail linking stock movements to vehicle operations
Key Features:
- Fuel Consumption Operation Type: Mark specific picking types as fuel operations
- Automatic Odometer Recording: Creates vehicle odometer records with full traceability
- Smart Location Routing: Routes fuel to vehicle-specific or default consumption location
- Validation Constraints: Ensures vehicle data and monotonically increasing odometer values
- Multi-Vehicle Support: Handle fuel distribution to multiple vehicles in single picking
Table of contents
Setup
- Configure Fuel Consumption Operation Type
- Navigate to Inventory > Configuration > Operation Types
- Create or edit a type for fuel operations
- Check the “Fuel Consumption” checkbox
- Set appropriate source/destination locations
- Configure Vehicle Fuel Location
- Navigate to Fleet > Vehicles
- Edit the vehicle
- Set “Fuel Consumption Location” to where fuel is consumed (e.g., Inventory Loss)
- This is optional; if not set, picking type’s default location is used
- Prepare Fuel Products
- Create storable fuel products (e.g., “Diesel Fuel”, “Gasoline”)
- Ensure proper inventory accounts are configured
Basic Workflow
- Create an Internal Transfer with Fuel Consumption type
- Select the vehicle being refueled
- Enter current odometer reading (must be ≥ last recorded value)
- Optionally assign a driver
- Add fuel product line(s) with quantities
- Confirm and validate
The system will:
- Automatically update move destination locations (vehicle location > picking type default)
- Create fleet.vehicle.odometer record with full traceability
- Decrease stock accordingly
Advanced Usage
Multiple Vehicles in Single Picking
- Add multiple move lines, one per vehicle
- Fill vehicle and odometer for each line
- All moves will be routed and tracked individually
Project Integration (Optional)
- If using analytic accounts, assign fuel consumption to projects
- Automatically creates analytical lines
Reporting
- View fuel consumption history in Fleet > Vehicles > Odometer
- Filter by date range, vehicle, or driver
- Link back to source stock picking for audit trail
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Escodoo
Contributors
- Escodoo:
- Kaynnan Lemes <kaynnan.lemes@escodoo.com.br>
Maintainers
This module is part of the Escodoo/fleet-addons project on GitHub.
You are welcome to contribute.
Please log in to comment on this module