30350n / inventree_part_import

CLI to import parts from suppliers like DigiKey, LCSC, Mouser, etc. to InvenTree
MIT License
24 stars 8 forks source link

import to part as supplier part #32

Closed CarlosDerSeher closed 3 months ago

CarlosDerSeher commented 3 months ago

Hey there great tool and really helpfull!

Maybe I am missing something but seems the tool can't do it. Here's what I try to achieve:

I got a part C_100nF_0603_50V_5%_X7R now it would be great to use inventree_part_import to actually get some Part Suppliers in there by using a command like this

inventree-part-import -p C_100nF_0603_50V_5%_X7R 581-06035C104JAT4A

where -p is the exisiting part where supplier data should be add.

Afterwards it should look like in the demo server:

Screenshot 2024-03-28 12 28 14

Currently this doesn't seem possible and I have to either enter all the info manually or just don't use generic parts like C_100nF_0603_50V_5%_X7R

Do you think this is possible? Where do I need to look at to add this functionallity if you are not interested in doing it or just don't have time to do it?

30350n commented 3 months ago

This is a similar issue/feature as #20. My proposed solution for that (adding --merge-parts and --merge-manufacturer-parts options) would also solve this, but I haven't found time to look into implementing it yet sadly.

You can also manually do this for now by importing the part, then linking the created ManufacturerPart to your existing Part and deleting the created Part you don't need/want.

CarlosDerSeher commented 3 months ago

Alright thank you. I guess this can be closed then.

CarlosDerSeher commented 2 months ago

@30350n sorry to ask this here but I can't find this information in the documentation anywhere. How do you link ManufacturerPart and supplier part through the UI? I managed to do it using the admin interface by changing the "base part" in manufacturer and supplier part and then deleting the created part. Do you know if there a better/faster way to do this?

30350n commented 2 months ago

That's exactly how you do it. It's not super straight forward, thus the --merge-parts functionality would definitely make things a little easier.

CarlosDerSeher commented 2 months ago

Ok thank you.