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

How to avoid __export__.product_product_19_26 and that kind of things in the export?

Suscribirse

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

Se marcó esta pregunta
v6.1exportproduct
2 Respuestas
10319 Vistas
Avatar
ton123

Exports are very quickly unreadable and not understandable.

In my export I see a lot of these data in the uom and in the categories. Even if the categories are the same the data in the categories is not the same.

Is there a method to export products with usefull data in categories and uom?

1
Avatar
Descartar
Avatar
ton123
Autor Mejor respuesta

Thanks to the Answer of Martin H. Bramwell and the comment of Ray Carnes I tested different things and found out what to do. I hope you both don't feel I steel your answer. I only try to explain what to do in small steps and what happens in my own words.

The method to get rid of __export__.product_product_19_26 and that kind of things in the export:

  1. Inspect your export.
  2. If you have this kind of rubbish in your export check the column name.
  3. Often this will be category id or oum id or others or both or more.

For each of these you or your user has made new categories, uom, or other. For reasons I do not understand the database is not ready for export and produces rubbisch in your export.

  1. Make an export of the above found categories, uom or other. If you do for some reason I do not understand the database is made ready for usefull export.

  2. Export again and be happy!

In my tested case the rubbisch has been changed in logical data:

  • Data in uom_id/id was changed in __export__.product_uom_10 /11/12 etc which was not unique and corresponding with the data in the other exported records.
  • Data in uom_po_id/id has been changed in __export__.product_uom_10 /11/12 .
  • Data in categ_id/id has been changed in __export__.product_category_19 /etc..

This is great and for me this is a breaktrough in the problem of export / import!

2
Avatar
Descartar
Ray Carnes

I recently discovered that all of this is due to a very small bug in export. Like you I have always been exporting dependent data first, and every time I notice 'garbage' I am reminded I need to do this. You can get rid of this problem for good if you make a small change (until the bug is fixed in the release). Then you won't have to export categories or UoM's before products (in your example). https://bugs.launchpad.net/openobject-server/+bug/1194893

ton123
Autor

@Ray Carnes I visit the url. OK. What do you mean with "You can get rid of this problem for good if you make a small change"? Is there an other easier workaround than I described above?

Ray Carnes

Yes. Fix the bug that the URL references (and provides a diff patch for). This involves editing three lines in openerp/osv/orm.py and restarting your OpenERP server.

Avatar
Martin
Mejor respuesta

Does this answer help :

Why does my Openerp export rubbish?

If you want more meaningful record identifiers you will have to create them with SQL commands directly in the database in the ir_model_data table.

When exporting OpenERP looks in that table for an alternate key name. If it does not find one it generates an ugly one, like __export__.product_product_19_26.

1
Avatar
Descartar
Ray Carnes

Recall (from the link Martin references) that if your categories or UoM's have no ID's, then OpenERP will incorrectly generate ID's for them. The way to get them correctly generated is to export the categories and UoM's before the products.

Martin

Excellent, Ray. Thanks. I had not ever done that myself, so I forgot about it.

ton123
Autor

Thanks to the Answer of Martin H. Bramwell and the comment of Ray Carnes I tested different things and found out what to do. I hope you both don't feel I steel your answer. I only try to explain what to do in small steps and what happens in my own words.

Ray Carnes

I am glad you are learning how to be successful with data exporting and importing. I am glad that you are sharing your experiences so everyone can benefit.

evon_dun

I tried doing the same way you guys described here but now I feel like hell. Please anyone brief me How do I cope up with this difficulty. I am importing products and my error is: ValueError: No such external ID currently defined in the system: __export__.product_category_45 I already imported my product_category

Ray Carnes

Please start a new question, and post what you have imported as well as what you are trying to import.

evon_dun

http://help.openerp.com/question/37695/valueerror-no-such-external-id-currently-defined-in-the-system-__export__product_product/ is my post.

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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
export all products included in a bill of materials
export product
Avatar
0
oct 17
3757
How do I make a product child product of another?
v6.1 product
Avatar
Avatar
1
mar 15
6847
How to export and import contacts and products back? Resuelto
v6.1 export product import contacts
Avatar
Avatar
Avatar
Avatar
Avatar
9
abr 24
37123
Differenciate product code( internal Reffercene) and product name
export product InternalReference
Avatar
Avatar
1
jun 24
2095
Can't re-import datafor products
export product import
Avatar
Avatar
1
mar 16
2450
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