Odoo Community Association

Mexico foreign trade invoicing compliance

Beta License: GPL-3 OCA/l10n-mexico Translate me on Weblate Try me on Runboat

This module adds Mexican foreign trade (COMEX) compliance on top of CFDI invoicing.

Features

PAC notes

Table of contents

Installation

Install the module from the Apps menu after its dependencies are installed (l10n_mx_cfdi_account, l10n_mx_catalogs_comex, and stock/sale stack).

Configuration

Install l10n_mx_catalogs_comex and l10n_mx_cfdi_account before this module.

Configure tariff codes on product templates and create pedimentos from Inventory > Operations > Pedimentos.

For CCE exports, keep partner addresses complete and use the standard invoice Incoterm field. Prefer Banxico USD rates for Tipo cambio USD.

SAT catalog imports for c_INCOTERM, c_ClavePedimento, and c_UnidadAduana are not shipped as full data tables yet; codes are entered as Char fields (Incoterm reuses account.incoterms.code). See ROADMAP.

Usage

Import pedimentos

Assign a pedimento to a landed cost before validation to copy it to the related lots. When invoicing products received with pedimentos, import details are appended to invoice lines and pedimento numbers are sent in the CFDI concepts (independent of CCE export).

Export — Comercio Exterior 2.0

  1. Set the product Tariff Code (fracción arancelaria).
  2. Ensure issuer and customer partners have street, ZIP, country, and state (SAT domicilio fields).
  3. On the invoice Other Info tab, set Incoterm (standard Odoo field).
  4. On the COMEX / CCE tab, enable Comercio Exterior (CCE) and fill:
    • Clave de pedimento (default A1)
    • Tipo cambio USD (MXN per 1 USD)
    • Optional certificado de origen / observaciones / destinatario
  5. On invoice lines (optional columns), set Valor dólares and customs quantity / unit / unit value as needed.
  6. Generate the CFDI as usual. The builder sets Exportacion=02 and attaches the CCE complement.

Known issues / Roadmap

  • Import full SAT catalogs for c_INCOTERM, c_ClavePedimento, c_UnidadAduana, and c_MotivoTraslado into l10n_mx_catalogs_comex (Many2one selectors instead of Char codes).
  • Auto-default TipoCambioUSD from Banxico / currency_rate_update_banxico when available.
  • Richer Destinatario / Propietario flows and DescripcionesEspecificas on mercancías.
  • Live PAC certification matrix for CCE on each provider.

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

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/l10n-mexico project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.