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

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
v6.1exportproduct
2 Respostes
10310 Vistes
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 Best Answer

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

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.

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
Related Posts Respostes Vistes Activitat
export all products included in a bill of materials
export product
Avatar
0
d’oct. 17
3753
How do I make a product child product of another?
v6.1 product
Avatar
Avatar
1
de març 15
6839
How to export and import contacts and products back? Solved
v6.1 export product import contacts
Avatar
Avatar
Avatar
Avatar
Avatar
9
d’abr. 24
37112
Differenciate product code( internal Reffercene) and product name
export product InternalReference
Avatar
Avatar
1
de juny 24
2090
Can't re-import datafor products
export product import
Avatar
Avatar
1
de març 16
2450
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