Fleet CO2 for the VSME report
Company cars and vans are Scope 1 emissions. Give each vehicle its consumption and link it to a fuel emission source: the kilometres of the odometer log in the report period, times the consumption, are added to the litres of the vendor bills.
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Miles are converted. A vehicle without consumption stops the computation with a message. It installs by itself when VSME Report and Fleet are installed. Odoo 17, 18, 19 and 20, Community and Enterprise.
Odoo 19 screenshots, also valid for Odoo 20.
Why the fuel of your company cars is missing from the bills
Under the voluntary sustainability standard for small and medium companies (VSME), the fuel burned by vehicles you own or lease is a direct emission, Scope 1. The VSME Report module of Aerya already turns the fuel on your vendor bills into litres and tonnes of CO2e. That works well when a vehicle is refuelled on an invoice that reaches Odoo.
Many fleets do not look like that. Drivers fill up with a fuel card that is billed once a month with no breakdown, pay at the pump and claim an expense, or run on a lease contract that includes fuel. In those cases the vendor bills give a partial figure or none, while Odoo Fleet knows exactly how far each vehicle drove, because the drivers log the odometer.
This add-on uses what Fleet already holds. You say how much each vehicle consumes, the module reads the kilometres from the odometer log and adds the litres to the fuel emission source of the report.
What it does
It adds two fields to the vehicle form: the average consumption in litres per 100 km, and the fuel emission source the vehicle belongs to. When you compute a VSME report, every vehicle linked to a source contributes its kilometres of the report period multiplied by its consumption. The result is added to the litres of the vendor bills of that source, and the total follows the usual path to the Scope 1 datapoint with the emission factor of the source.
How it works, step by step
- Install. Install VSME Report and Fleet first. This module installs by itself as soon as both are present, with nothing to configure on the module itself.
- Prepare a fuel source. In VSME › Data › Emission sources, create a source of kind fuel for each fuel you burn, for example diesel and petrol, and give it its emission factor. The source can also carry vendor bill products or expense accounts, as in the main module.
- Fill in the vehicle. Open the vehicle in Fleet. Next to the fuel type, enter Consumption (l/100 km) and choose the VSME emission source. The list of sources is limited to fuel sources of the vehicle's company.
- Keep the odometer log. The drivers or the fleet manager record readings with a date, as they already do in Fleet.
- Compute the report. Open the VSME report and press Compute from Odoo data. The Scope 1 datapoint now includes the vehicles, and its note says how many vehicles came from the odometer log.
- Check and finish. Review the value, overwrite it if you know better (a value you enter by hand is kept at the next compute), run the completeness check and mark the report final.
A worked example
A company reports for 2026. A diesel van has a consumption of 6 l/100 km. The last odometer reading before the period is 10,000 km on 20 December 2025. The last reading up to the end of the period is 20,000 km on 15 December 2026. The van drove 10,000 km, which is 600 litres. The vendor bills of the diesel source add 500 litres. The report counts 1,100 litres of diesel and multiplies them by the factor of the source.
How the kilometres are found
The module reads the odometer log of the vehicle with these rules:
- The end reading is the latest one dated on or before the last day of the report period.
- The start reading is the latest one dated before the first day of the period. If there is none, the first reading inside the period is used.
- Kilometres are the difference of the two. A negative difference counts as zero.
- A vehicle with no reading in the period, or whose last reading is older than the period, adds nothing.
- If the vehicle's odometer is in miles, the result is converted to kilometres.
Because the module needs a reading at the start and at the end, ask drivers for one reading around the turn of the year. The more regular the log, the closer the figure.
Settings and options
There is no settings screen. The two fields on the vehicle are the whole configuration, and they are visible to users of the VSME groups. Everything else, the factors, the units, the periods and the final lock, comes from VSME Report. A vehicle with no VSME source is ignored, so you decide vehicle by vehicle what enters the report.
What it does not do
- A vehicle linked to a source but without a consumption stops the computation with a message that names the vehicle. Nothing is guessed.
- If the unit of the source's emission factor cannot be reached from litres, the computation stops with a message naming the source.
- It works with litres per 100 km only. There is no field for kWh per 100 km, so the charging of electric vehicles has to come from an electricity source and its bills.
- Consumption is one average per vehicle, not a figure per trip or per refuelling.
- Fuel on a source's vendor bills and the vehicles of the same source add up. If a fuel card bill already covers a vehicle, do not tag that bill on the source or the fuel is counted twice.
- Scope 3, such as employees driving their private cars, is not computed by VSME Report and not by this add-on.
Requirements
- Odoo 17, 18, 19 or 20, Community or Enterprise.
- The Fleet app of Odoo.
- VSME Report by Aerya (
aerya_vsme), which this module extends. - A host that allows modules with Python code: Odoo.sh or your own server.
Frequently asked questions
Do I need the odometer log, or can I type the kilometres?
The kilometres come from the odometer log of Fleet, there is no separate field for them. If a vehicle has no reading in the period it contributes zero, so fill the log before you compute.
Does it work with several companies?
Yes. The source list on the vehicle only offers fuel sources of the vehicle's company, and each VSME report is for one company.
Can I compute the report again after I correct a reading?
Yes, until the report is marked final. A value you overwrote by hand stays as you entered it.
Can a user of the VSME group compute without access to Fleet?
Yes. The module reads the vehicles and the odometer log on the report's behalf, filtered by the report's company.
What happens if I uninstall it?
The two fields leave the vehicle form and the vehicles no longer feed the report. VSME Report and Fleet keep working. Datapoints already computed stay in the reports until you compute them again.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 19, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Fleet (fleet)
• Discuss (mail) • Employees (hr) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 4053 |
| Technical Name |
aerya_vsme_fleet |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module