Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
v6.1exportproduct
2 Replies
10307 Views
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
Discard
Avatar
ton123
Author 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
Discard
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
Author

@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
Discard
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
Author

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!

Sign up
Related Posts Replies Views Activity
export all products included in a bill of materials
export product
Avatar
0
Oct 17
3753
How do I make a product child product of another?
v6.1 product
Avatar
Avatar
1
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
Apr 24
37111
Differenciate product code( internal Reffercene) and product name
export product InternalReference
Avatar
Avatar
1
Jun 24
2089
Can't re-import datafor products
export product import
Avatar
Avatar
1
Mar 16
2450
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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