Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7420 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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.


  


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 22
3596
1
lut 19
4426
1
lip 16
3095
0
mar 15
7959
1
sty 23
5644