inventree_part_import
inventree_part_import copied to clipboard
Allow overwriting part names
Summary
This PR adds functionality to overwrite part names associated to supplier/manufacturer parts.
Problem
In some cases, parts can have multiple different manufacturers and MPNs, but are essentially the same. For example, there is a multitude of 10-pin 2.54mm 2x5 shrouded headers, which for almost all intents and purposes are identical.
For items like these, it does not make sense to keep seperate stock or even treat them differently in any way. However, currently inventree-part-import
does not support such a scenario.
Description
This PR adds functionality to overwrite part names associated to supplier/manufacturer parts. With this, it's possible to store multiple similar supplier/manufacturer into the same part.
For example,
inventree-part-import --overwrite-part-name Header-254-16P-S 302-S161 BHR-16-VUA SBH11-PBPC-D08-ST-BK
will store multiple of the aforementioned headers into the same part, Header-254-16P-S
. This keeps the parts minimal, allows keeping one stock item for all different supply/manufacturer parts and in general simplifies handling.