DeCA Spain - Documento Electronico de Control Administrativo for Road Transport
by Modvanta https://modvantaapps.tech/odoo-apps/es-deca/$ 44.87

DeCA Spain: the electronic road-transport control document, straight from your delivery orders
Ley 9/2025 makes the control document of every domestic public road-freight shipment in Spain digital-only ten months after its entry into force. This module builds it from the Odoo delivery order: a native PDF with a QR code and a public HTTPS URL an inspector opens without logging in, amendments on the road, grouped shipments and automatic closing.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Ley 9/2025 made the documento de control administrativo of Orden FOM/2861/2012 digital, and the Resolucion de 5 de junio de 2026 of the Direccion General de Transporte por Carretera y Ferrocarril (BOE-A-2026-12784) sets what the electronic document (DeCA) and the software that produces it must do.
There is no Ministry portal, upload or certification: the shipper or the carrier generates the PDF and hosts it at its own unique URL. This module does exactly that inside Odoo. It fills the shipper, carrier, origin, destination, nature and weight from the delivery order, checks every legal datum before emission, renders a native PDF with an embedded QR code and serves it at a login-free HTTPS URL during the service.
Changes on the road follow the two methods of the resolution: the same PDF and URL with the old value struck through, or a new DeCA when the carrier or the shipper changes. Seven calendar days after the end of the service the public URL closes by itself; the record and every PDF version are kept.
Who it is for
Shippers Manufacturers, distributors and wholesalers that hire hauliers for domestic road freight. | Hauliers and logistics operators Carriers that issue the DeCA themselves, including foreign carriers doing cabotage in Spain. | Dispatch teams Warehouses that load several deliveries on one truck and need one document per trip. |
Key features
Every screen below is a real Odoo 19 screen with the module and its demo data.
Feature 1
Applicability on the delivery order
Each delivery order knows whether it needs a DeCA: domestic public road freight and cabotage by a foreign carrier do; own fleet (art. 2.1.a), parcel services (art. 2.1.d) and international transport do not. One click creates the DeCA with origin, destination, goods and weight filled in.

Feature 2
Every DeCA and its status
Draft, emitted, service finished, closed, cancelled or superseded, with carrier, vehicle, weight and the date the public access closes.

Feature 3
All the data of article 6
Contractual shipper and effective carrier in separate blocks, MDPE / MDLE authorisation, driver, vehicle and trailer plates from the carrier's fleet, special traffic authorisation, date, shipments and observations. Missing or invalid data, including NIF / NIE / CIF checksums, are listed all together before emission.

Feature 4
Versions and amendments on the road
Every PDF version is kept with its SHA-256 hash. Each amendment records the old and new value, the reason, the user and who answers for it under art. 7.

Feature 5
Public URL with access log
The QR code points to a unique HTTPS URL that downloads the PDF directly: no login, no page, no button. Every GET or HEAD request is logged with time, IP address, method and response code. Closed, cancelled or superseded documents answer 410.

Feature 6
Native PDF with the QR code
Rendered from the data, never a scan, under 5 MB, with the creation and modification time in the PDF metadata. The driver, carrier and shipper receive the PDF, the URL and the QR code as an image by e-mail.

Feature 7
Method A: same document, same QR
A tractor breakdown, a new trailer or a corrected weight: the wizard updates the PDF behind the same URL and shows the old value struck through with NO VALIDO desde and the reason.

Feature 8
Method B: a new DeCA when the carrier changes
Changing the carrier or the shipper always issues a new DeCA with a new number, URL and QR. The original is kept, marked superseded and linked to its replacement.

Feature 9
Several deliveries, one DeCA
Select delivery orders with the same shipper and carrier and use Actions - Create grouped DeCA: one shipment line each, with its own destination, goods, weight and date, and the note that the order is not the order of execution.

Feature 10
Carriers and their vehicles
Mark a contact as DeCA carrier or parcel service, store its transport authorisation and its vehicles; plates are normalised and picked on the DeCA.

How it works, step by step
| 1 | Set up the carrier On the carrier's contact tick DeCA carrier, enter the MDPE / MDLE authorisation and add its vehicles. |
| 2 | Check the company Settings - Inventory - DeCA (Spain): run the compliance self-check (HTTPS base URL, company NIF and address). |
| 3 | Create the DeCA On the delivery order choose the DeCA carrier and click Create DeCA, or group several deliveries from the list. |
| 4 | Emit before loading Add the plates and the driver and click Emit. The number, the public URL, the PDF and the e-mails are produced in one step. |
| 5 | On the road Register amendment keeps the same URL (method A) or issues a new DeCA for a carrier or shipper change (method B). Validating the delivery starts the service. |
| 6 | After delivery Finish service. Seven calendar days later the public URL closes automatically; the document stays in Odoo. |
Settings
Inventory - Configuration - Settings, block DeCA (Spain).
| Require HTTPS | Emission is refused while the web base URL is not HTTPS (Resolucion Tercero.1). |
| Close after (days) | Public access closes this many calendar days after the end of the service; 7 by default (Tercero.5). |
| E-mail copies | Send the PDF, the URL and the QR code to the driver, the carrier and the shipper on emission and on every amendment. |
| Default carrier | The DeCA carrier proposed on new delivery orders. |
| Groups | DeCA User creates, emits, amends and finishes; DeCA Administrator also cancels before the service starts, reopens public access and manages vehicles. |
Frequently asked questions
Do I have to register or upload the DeCA anywhere?
No. The resolution only requires the PDF to be available at its own HTTPS URL during the service; the repository domain is free and needs no prior communication. The module hosts it in your Odoo.
Does my Odoo need to be reachable from the internet?
Yes. Inspectors open the URL in the QR code, so the Odoo instance must be published over HTTPS with TLS 1.2 or higher.
Is a signature required?
No. Neither Orden FOM/2861/2012 nor the resolution requires one; an advanced electronic signature is only needed when the document is also used as a contract, which this module does not cover.
What happens after the service?
The public URL keeps working until the configured number of days after the end of the service, then answers 410. The record and every PDF version are kept in Odoo; nothing can be deleted.
Are passenger transport and international trips covered?
No. The module covers domestic public road freight and cabotage; passenger route sheets and international documents are out of scope.
Compatibility
Odoo 19 Community and Enterprise | Depends on Inventory | Languages English, Spanish |
Put a valid DeCA on every truck that leaves your warehouse
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
Support: modvantaapps@gmail.com - Author: Modvanta
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) |
| Lines of code | 1331 |
| Technical Name |
mdv_es_deca |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/es-deca/ |
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