Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Import of products and Bom

Subscriure's

Get notified when there's activity on this post

This question has been flagged
2 Respostes
1816 Vistes
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 Best Answer

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
Best Answer

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
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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