Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Import of products and Bom

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
2 Respuestas
1723 Vistas
Avatar
Damien

I'm currently importing products into Odoo 18, followed by a Bill of Materials (BoM) import using External IDs. However, I'm encountering the following error:

"Invalid external ID import.400034: expected model 'product.product', found 'product.template'"

What I’ve Tried

  • When importing products, Odoo correctly creates product.template records.
  • According to the official documentation and community threads (e.g., -->odoo.com/forum/help-1/producttemplate-vs-productproduct-94430), a corresponding product.product should be automatically generated for each template.
  • However, in my case, this automatic creation doesn't seem to happen — or at least it's not visible for linking via external ID.

Troubleshooting Steps Attempted

  1. Re-exported the products after import to check for the product.product external IDs — but only product.template entries are exported. External IDs are the one I set (__import__.XXXX)
  2. Tried importing with and without enabling variants — the result is the same.
  3. Verified that the product shows up in the UI, but BoM import still fails due to the mismatch in expected model.


  • Why is the product.product record not being generated or not linked via external ID?
  • How can I correctly import BoMs using external IDs that reference the product variant (product.product) instead of just the template?

I've scouted the depth of the internet to find a solution, there are no clear answer. ChatGPT 4.5 is as lost as I am.

What is the correct way to import product and bom, I can't link by name as there duplicated names with different ids, those are data extracted from SAP with over 10'000 products and 30'000 bom entries.


Any clarification or recommended workflow would be appreciated.



0
Avatar
Descartar
Christoph Farnleitner

It would probably be beneficial if you'd add a trimmed down version of your import files showing the header and relevant data for an example dataset.

Avatar
Damien
Autor Mejor respuesta

Hi Christoph,

Thank you, the missing part was to export with the Product_variant_ids/id column as you put in your screenshot.

It seem easier to import variants directly, you mentioned " if this works for your product structure", what are are the drawback of doing so ?

0
Avatar
Descartar
Christoph Farnleitner

Unless you're using Product Templates with actual Variants (1 Template with Attributes that lead to variations of that Product) it doesn't matter at all. Otherwise it might be a bit of hassle to actually create Variants that belong together.

Avatar
Christoph Farnleitner
Mejor respuesta

In general, there can't be a product.template without at least one product.product (Product Variant) assigned to it - even if there are no Attributes involved at the Product Template creation. However, if you actually import Product Templates with an External ID, this ID is not the same as the external ID of the Product Variant as it is stored as a separate record. You will have to explicitly export your Product Variants, or add the Variants' external IDs to the Product Template export:


Highlighted in yellow, this is the data Odoo expects you to use when importing Variant-specific data in a second step:


This is, because a Product Template is not specific enough (for example due to Attributes) and only the actual Product Variant defines what 'real' Product to deal with.


You can however also directly import Product Variants, rather than Product Templates, if this works for your product structure. This way, the external ID given to a line is already the one you will need for importing BOM lines (just ensure you have Product Variants enabled in the Settings to see that Menu point i.e. in Manufacturing -> Products -> Product Variants)


0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now