Odoo Help


How to import BOM with some shared components?

on 5/20/16, 11:21 AM 1,162 views

I'm trying to find out the proper procedure to perform a BOM import that has mainly two scenarios:

1. Import BOM without any shared components: Imagine you are importing BOM for product X that has 10 components: A1, A2, A3..., A10. The design engineer generates a csv file with the entries of these components, their manufacturer part#, name,  quantities, etc.

Goal is to create these products on import and associate them to the BOM of Product X. 

2. Import BOM with some shared components: Imagine you are importing BOM for product Y that has also 10 components and 7 of them are shared:

A1, A2, A3,..., A7. And some new components B1, B2 and B3.

We need a procedure to import/create the new products and associate the shared as well as the new components to the BOM of product Y. And this procedure needs to be somewhat automated as our 'real world' cases will have 100+ components and we may not know which ones are the shared components

the way we came up with was to export all products in the Odoo DB, then compare the components to the list of exported components from the Odoo DB.

Once you figure out the ones you already have, you import the ones you don't have.

After that you export again, then you get all the internal IDs for all products, then you match to the ones in your BOM, and after you did that you import your BOM with those IDs

I can't imagine this to be the right way to do it...

Your help would be highly appreciated!


Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 11/27/17, 4:51 PM

The best way to do this is to make sure all products are created in Odoo before you import BoM's. 

Assign each product an External ID that is unique - this way if you import a product using an ID that is already in Odoo the import will UPDATE and if you import a product using an ID that is not already in Odoo the import will CREATE.

Both types of BoM's can then be imported without having to export and compare anything.

Data import in Odoo is extremely powerful and also quite difficult to get right without some heavy investment in reading the documentation and learning through doing.  If you climb the learning curve you will also learn a lot about the Odoo data model.  

Review http://www.odoo.com/documentation/user/10.0/general/base_import/import_faq.html for more information.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/20/16, 11:21 AM
Seen: 1162 times
Last updated: 11/27/17, 4:51 PM