Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

🇲🇽 [l10n_mx] Migración de pedimentos de v18.4 y anteriores a v19.0 / Migration of customs declaration numbers from v18.4 and earlier to v19.0

Subscribe

Get notified when there's activity on this post

This question has been flagged
inventoryinvoicingpedimentoqsmxl10n_mx
1 Reply
434 Views
Avatar
Elías Álvarez Mota (elal)

Pruébalo gratisCon Odoo 19, el módulo de localización l10n_mx cambió la forma en que se maneja y muestra el “Número de Pedimento Aduanal” en las facturas. Si migraste desde una versión anterior, esta es la forma de gestionar los pedimentos de productos que ya habías dado de alta. Aquí te dejo los pasos para reconfigurar correctamente esos productos existentes:


With Odoo 19, the l10n_mx localization module changed the way the “Customs Declaration Number” is handled and displayed on invoices. If you migrated from a previous version, this is how to manage the declarations for products you had already registered. Here are the steps to correctly reconfigure those existing products:


English answer in the latter half of the post

0
Avatar
Discard
Avatar
Elías Álvarez Mota (elal)
Author Best Answer

Paso 1: Requisitos previos

Asegúrate de tener el módulo l10n_mx instalado.

Paso 2: Bajar existencias a cero

La gestión de números de pedimento a partir de v19 exige ciertos requerimientos, entre ellos la trazabilidad por Lotes/Números de Serie Antes de modificar la configuración del producto, es indispensable dejar el stock en cero. Odoo no permite cambiar el seguimiento ni el método de valoración si hay cantidades disponibles.

  1. Ve a Inventario: Operaciones: Ajustes de inventario.

  2. Crea un ajuste para bajar la cantidad actual (por ejemplo, de 10: 0).


  1. Valida el ajuste para confirmar el cambio.


Este paso libera el producto para poder editar su configuración sin restricciones.

Paso 3: Reconfigurar el producto

Ahora edita el producto y actualiza su configuración para cumplir con los nuevos requerimientos de Odoo 19 para los números de pedimento aduanal:

  1. Seguimiento (tracking): Activa Por Lotes o Por Número de Serie Único (obligatorio para el pedimento).
  2. Política de facturación (invoice_policy): Debe ser Cantidades entregadas (Delivered quantities).

  1. Categoría del producto: Debe tener un Método de Valoración (property_cost_method) configurado en FIFO o AVCO.

  1. Pestaña Inventario: Activa Valoración por Lote/Serie (lot_valuated).

  1. Pestaña Contabilidad: Activa Facturación aduanal (l10n_mx_edi_can_use_customs_invoicing).


Guarda los cambios. Con esto el producto ya está alineado con la lógica de trazabilidad aduanal de Odoo 19.

Paso 4: Reconstruir inventario con lotes o series

Después de reconfigurar el producto, vuelve a cargar las existencias para que queden vinculadas a un lote o número de serie:

  1. Crea un Lote o Serie, por ejemplo Lot-00001.


  1. Nuevo ajuste de inventario: sube nuevamente la cantidad (de 0: 10) asignándola al lote Lot-00001.


Tus existencias ahora están correctamente registradas bajo un lote o serie.

Paso 5: Relacionar el pedimento

Si el producto ya tenía un número de pedimento aduanal asignado en un costo en destino (landed cost) previo, no necesitas recrearlo. Simplemente relaciona ese costo en destino con el nuevo lote o serie.

Esto restablecerá la vinculación del pedimento y permitirá que aparezca correctamente en las facturas, al igual que en el lote. De tal forma que una vez que hayas emitido una factura se verá reflejado en el XML.


Step 1: Prerequisites

Ensure that you have the l10n_mx module installed.


Step 2: Reduce stock to zero

The management of customs declaration numbers from v19 onwards requires certain requirements, including traceability by batches/serial numbers. Before modifying the product configuration, it is essential to reduce the stock to zero. Odoo does not allow you to change the tracking or valuation method if there are quantities available.

Go to Inventory: Operations: Inventory Adjustments.

Create an adjustment to reduce the current quantity (for example, from 10 to 0).


Validate the adjustment to confirm the change.


This step frees up the product so that you can edit its configuration without restrictions.

Step 3: Reconfigure the product

Now edit the product and update its configuration to comply with the new Odoo 19 requirements for customs declaration numbers:

  1. Tracking: Enable By Batch or By Unique Serial Number (mandatory for customs declarations).
  2. Invoicing policy (invoice_policy): Must be Delivered quantities.