Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Food & Hospitality
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Guest House
    • Distribuidor de bebidas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consulting
    • Accounting Firm
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Trades
    • Handyman
    • Hardware y asistencia informática
    • Solar Energy Systems
    • Zapatero
    • Servicios de limpieza
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

How to export External ID

Suscribirse

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

Se marcó esta pregunta
external_idExporting
2 Respuestas
5844 Vistas
Avatar
Chris Harris

I'm using the hosted version of Odoo 17.

I manually entered a couple dozen products from a vendor then added pictures, set categories for Sales and POS, etc.

Now I received a full price list from the vendor (and I will be receiving updated pricelists every 6 months). 

I want to import the full price list without creating duplicate products. Reading through the docs, it seems the way to avoid creating duplicates is by using the External ID field. However, I have not found a way to export my current product list with the External ID.

How can I export my product list and include the External ID (as well as other fields that are not available in the column selector in the Products list view such as Ecommerce Shop/Categories)?

Perhaps an even better option would be if I could configure the import to prevent creating duplicate Internal Reference IDs. I already can't create a new product with the same Internal Reference in the UI, but Import doesn't enforce this constraint. Is it possible to configure Import to prevent duplicates?

0
Avatar
Descartar
Avatar
Shajahan
Mejor respuesta

In Odoo, the External ID is mainly used for referencing records across different modules or between instances. It's not directly related to preventing duplicate products during import. However, to avoid creating duplicate products during import, you can use the Internal Reference field as a unique identifier.

Here's how you can export your product list with the Internal Reference field:

  1. Navigate to the Product listing in Odoo.
  2. Click on the "Export" button to export the product list.
  3. In the export wizard, select the fields you want to export, including the Internal Reference field.
  4. Export the data in a CSV or Excel file format.

Now, you have your product list exported with the Internal Reference field.

To configure the import to prevent creating duplicate Internal Reference IDs, you'll need to use a unique constraint on the Internal Reference field. Unfortunately, out-of-the-box, Odoo does not provide a direct option to enforce this constraint during the import process. However, you can achieve this through customization or by using a custom script to preprocess your data before import.

Here's an approach to enforce uniqueness during the import process:

  1. Before importing your price list, check the Internal Reference of each product in the price list against your existing product database.
  2. If a product with the same Internal Reference already exists, update the existing product with the new price information instead of creating a new product.
  3. If a product with a new Internal Reference is found, import it as a new product.

You can achieve this by writing a custom Python script that preprocesses your price list data before importing it into Odoo. This script would handle the logic to check for existing products and update them accordingly.

Additionally, you can explore Odoo's import options, such as the "Update existing records" option, which can update existing records based on a matching field. However, this option might not fully address your requirement since it updates records based on a specific field match, rather than enforcing uniqueness based on the Internal Reference field.

Customization or scripting may be necessary to achieve the exact behavior you're looking for. If you're not comfortable writing custom scripts, you might consider reaching out to an Odoo developer or consultant for assistance with this task.

1
Avatar
Descartar
Avatar
Chris Harris
Autor Mejor respuesta

@Shajahan

Thank you for your response!

Originally, I couldn't find a way to "Export All", but after watching one of the tutorial videos I noticed that I needed to select some records (or all records) and then a new menu appeared that has the "Export All" option. 

With that help and a few more hours of troubleshooting import errors, I have now successfully imported all of my new products.

Thank you very much!

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

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
What are mandatory export fields
Exporting
Avatar
Avatar
1
feb 24
2527
Unable to Export Data v15 Resuelto
Exporting
Avatar
Avatar
2
jul 23
4525
How i can find Product PopUp external ID?
external_id
Avatar
Avatar
Avatar
3
jul 20
4533
How to hide export access only in Mobile PWA, and not in desktop.
Exporting odoo17
Avatar
0
ago 24
1826
I want to export Purchase requisitions, goods received and master data. Which tables should I ask for?
Exporting naming
Avatar
0
jun 24
1823
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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