afkiwers / inventree_kicad

KiCad EDA conform API endpoint for KiCad's parts library tool. This plugin provides metadata only and requires matching symbol and footprint libraries within the KiCad EDA.
MIT License
38 stars 8 forks source link

KiCad's access to InvenTree's part's name upon BOM import to InvenTree #102

Closed JacobEFO closed 1 month ago

JacobEFO commented 1 month ago

Hi afkiwers,

I am currently using your plugin here, to easily interact between InvenTree and KiCad. However, I have run into a problem when I export a KiCad BOM that I then wish to import back into InvenTree.

The components I place via the inventree_kicad plugin correctly have the right metadata except for the actual part name as given in InvenTree. Take for instance an LED I am using defined as this in InvenTree:

image

And the appearance in KiCad.

image

And how it appears in the KiCad exported BOM:

image

To correctly import a KiCad BOM InvenTree requires a Component column which I cannot figure out how inventree_kicad handles. You can see here a snip of the InvenTree BOM import window:

image

Have you done something similar or do you have any idea how to easily resolve this issue? My own go-to would be to use my IPN and retrieve the corresponding component names and add that as an extra column. But this seems slightly excessive. A good option could be that inventree_kicad adds a component field such as Inventree_Part taken as the part name of each component.

JacobEFO commented 1 month ago

Hey afkiwers,

I just updated to the newest version of InvenTree and now this issue is actually resolved. My old version 16.1 of Inventree did NOT like the InvenTree PK but it now recognizes it correctly. So there is indeed no need for the name of the component and all will be handled by the PK.

Sorry for any inconvinience.

afkiwers commented 1 month ago

Perfect, I'm glad it works now.