Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import to part as supplier part #32

Closed
CarlosDerSeher opened this issue Mar 28, 2024 · 5 comments
Closed

import to part as supplier part #32

CarlosDerSeher opened this issue Mar 28, 2024 · 5 comments
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@CarlosDerSeher
Copy link

CarlosDerSeher commented Mar 28, 2024

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
Copy link
Owner

30350n commented Mar 28, 2024

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.

@30350n 30350n self-assigned this Mar 28, 2024
@30350n 30350n added duplicate This issue or pull request already exists enhancement New feature or request labels Mar 28, 2024
@CarlosDerSeher
Copy link
Author

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

@CarlosDerSeher
Copy link
Author

@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
Copy link
Owner

30350n commented Apr 2, 2024

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
Copy link
Author

Ok thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants