Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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!
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/20/16, 11:21 AM|
|Seen: 860 times|
|Last updated: 11/27/17, 4:51 PM|