Skip to content
Health
70/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by15/25
    1 module depends on it
  • Maturity5/25
    In 1 Odoo series since 19.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis 1 migration note 3 models 4 views 1 HTTP endpoint

Description

Este módulo proporciona el documento de control administrativo electrónico (DeCA) para el transporte terrestre de mercancías, adaptado a los requisitos legales de España dictados por el Ministerio de Transportes y Movilidad Sostenible.

El Documento de control electrónico se integra con los albaranes de Odoo y permite a los transportistas generar, imprimir y compartir el documento DeCA directamente.

Más información en la página oficial: Documento Electrónico de Control Administrativo (DeCA).

Inmutabilidad y Versionado

Para cumplir estrictamente con los requisitos legales sobre el documento DeCA:

  • Generación inmutable: La primera vez que se imprime o se solicita un documento, se almacena de forma inmutable como archivo adjunto (v1).
  • Preservación de URL/QR: Al compartir el enlace al transportista, siempre servirá de forma dinámica la última versión generada, manteniendo el mismo código QR impreso físicamente.
  • Trazabilidad de Metadatos: El PDF incluye inyección automática de metadatos (/CreationDate y /ModDate) que indican cuándo se generó la primera versión y cuándo la versión actual, sirviendo como rastro de auditoría.
  • Versionado inteligente: Si se alteran datos críticos en el albarán (matrículas, transportista, productos o bultos) tras haber emitido un DeCA, el sistema generará automáticamente una nueva versión (v2, v3...) manteniendo siempre el histórico de archivos PDF previos adjuntos en Odoo.

Dependencies

Odoo dependencies
Python dependencies
pypdf
System dependencies
None
Required by
l10n_es_deca_oca_batch

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 4

XML IDNameModelTypeStatus
report_deca report_deca ir.ui.view qweb New
report_deca_document report_deca_document ir.ui.view qweb New
view_picking_form_inherit_l10n_es_deca_oca stock.picking.view.form.inherit.l10n_es_deca_oca stock.picking form Inherits stock.view_picking_form
view_picking_type_form_inherit_l10n_es_deca_oca stock.picking.type.view.form.inherit.l10n_es_deca_oca stock.picking.type form Inherits stock.view_picking_type_form

HTTP endpoints 1

Route(s)HandlerAuthTypeMethodsFlags
/my/picking/<int:picking_id> DecaController.public_delivery_portal public http ALL sudo

Models touched 3

New fields (1)
  • deca_weight Float
    compute='_compute_deca_weight' compute_sudo=True digits='Stock Weight' store=True
Public methods (0)

No public methods.

New fields (13)
  • carrier_contact_id Many2one → res.partner
    comodel_name='res.partner' help='Carrier contact whose details are printed on the DeCA' string='Carrier contact'
  • deca_access_token Text
    copy=False string='Security access token to share url'
  • deca_content_hash Char
    copy=False readonly=True string='DeCA Content Hash'
  • deca_first_version_date Datetime
    copy=False readonly=True string='DeCA First Version Date'
  • deca_is_visible Boolean
    compute='_compute_deca_is_visible'
  • deca_version Integer
    copy=False default=0 readonly=True string='DeCA Version'
  • deca_weight Float
    compute='_compute_deca_weight' compute_sudo=True digits='Stock Weight' help='Total weight of the products in the picking.' store=True
  • special_authorization Text
    string='Special traffic authorisations'
  • special_authorization_history Text
    copy=False readonly=True string='Special authorisation history'
  • tractor_license_plate Char
    size=8 string='Main vehicle or tractor licence plate'
  • tractor_license_plate_history Text
    copy=False readonly=True string='Tractor licence plate history'
  • trailer_license_plate Char
    size=8 string='Trailer or semi-trailer licence plate'
  • trailer_license_plate_history Text
    copy=False readonly=True string='Trailer licence plate history'
Public methods (2)
  • action_print_deca(self)
  • write(self, vals)

New fields (1)
  • l10n_es_deca_enabled Boolean
    help='Allows printing the DeCA report for incoming shipments.' string='Enable DeCA'
Public methods (0)

No public methods.

Loading…