OdooWiki OCA HUB

CFDI Carta Porte - Inventarios

l10n_mx_cfdi_waybill folder_open OCA/l10n-mexico open_in_new
Stock License: LGPL-3

This module adds Mexican CFDI Carta Porte (waybill) support for inventory transfers. It provides simplified fleet management with vehicles, transporters, and waybill generation linked to stock pickings.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets Mexican companies create CFDI Carta Porte (waybill) documents from stock transfers, with simple records for vehicles, trailers and drivers, and automatic route distance and travel time.

This module adds a "Carta Porte" section to the Inventory app for Mexican electronic waybills (CFDI type T).

  • From a stock transfer (picking) you get a "Crear Carta Porte" button that opens a new waybill pre-filled with that transfer. A "Carta Porte" tab on the transfer lists the waybills already linked to it, and the button hides once a published waybill exists.
  • The waybill screen has Publish, Cancel and Reset to Draft buttons. Publishing builds the CFDI, attaches the PDF and XML files to the document and posts a message in its chatter. Cancelling opens the standard CFDI cancellation screen.
  • Each waybill line (goods transfer) is created from the transfer's moves and fills in product, quantity, origin and destination addresses and departure time. Distance and duration are computed with OpenStreetMap routing, and arrival time is departure plus duration.
  • Before publishing, the system checks that a vehicle and at least one driver (operator) are set, that drivers have a tax ID, type and driving licence, that origin and destination are in the same country, and that products have SAT codes, unit of measure and weight. A move already used in a published waybill cannot be reused.
  • New menus under Inventory > Carta Porte manage drivers/contacts, vehicles and trailers. Vehicles store plate, model, configuration, permit, insurance and trailers.
  • Products gain dangerous-material fields, and contacts gain a driving licence field.

Depends on

basebase_geolocalizebase_address_extendedstockl10n_mx_cfdi_account

Menus it adds

ContactosVehículosCarta PorteCartas Porte
Models and fields (9)
  • res.partner · extends an existing modell10n_mx_cfdi_waybill_driving_license (Licencia de Conducir)
  • base.geocoder · extends an existing model
  • stock.picking · extends an existing modelhas_waybill, waybill_ids (waybill)
  • product.template · extends an existing modell10n_mx_cfid_dangerous_material_code (Código de material Peligroso), l10n_mx_cfdi_dangerous_material_indicator (Indicador de material peligroso CFDI)
  • l10n_mx_cfdi_waybill.vehicle · new modelname (Nombre), model (Año/Modelo), plate (Número de Placa), trailers, company_id, permit_type (Tipo de Permiso), permit_number (Número de Permiso), vehicle_setup (Configuración de Vehicular), insurance_number (Número de Seguro), insurance_company (Compañía de Seguros), gross_vehicle_weight (Peso Bruto Vehicular)
  • l10n_mx_cfdi_waybill.waybill · new modelcfdi_id (CFDI), entry_ids (Entradas), vehicle_id (Vehículo), picking_ids (Traslados), transporter_ids (Contactos), federal_highway_use (Uso de carretera federal)
  • l10n_mx_cfdi_waybill.transporter · new modeltype (Tipo), type_code, company_id, partner_id (Contacto), driving_license (Licencia de Conducir), parte_transporte_ids (Partes de Transporte)
  • l10n_mx_cfdi_waybill.waybill_entry · new modelmove_id, distance (Distancia (Km)), duration (Duración (Hrs)), picking_id, product_id, waybill_id, product_qty (Cantidad), arrival_datetime (Arribo), origin_address_id, departure_datetime (Salida), destination_address_id
  • l10n_mx_cfdi_waybill.vehicle_trailer · new modeltype (Tipo de Trailer), plate (Número de Placa), company_id

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. The module is very large and only part of the code was read. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/l10n-mexico.

terminal Installation and usage

OCA documentation · Odoo 19.0

Configure vehicles, transporters, and CFDI issuers before creating waybills from inventory transfers.

Create a waybill from a stock picking or from the Waybills menu, complete the required transport data, and publish the CFDI.

No verified information in OCA: Installation.

info

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.