-
Notifications
You must be signed in to change notification settings - Fork 38
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
Inventree parameter not created if Part Category Parameter Template exists for parameter #268
Comments
Turns out Ki-nTree/kintree/database/inventree_api.py Lines 866 to 882 in 345304e
|
I believe what happens is that when setting a Example: I have a Category
As a user, I would expect this parameter to be updated with the right value in this case. Do you agree? Perhaps skipping the |
Ok I see what you mean now, thanks for clarifying. I had forgotten that Part Category templates existed, and yes if the value is empty it will stay empty... |
Running on Ki-nTree version
1.1.4
.I'm creating Inventree parts from digikey search with the following
supplier_parameters.yaml
The issue I'm seeing is that upon creating a part some parameters are skipped, i.e.
Tolerance
andVoltage
, while others work as intended, i.e.Value
. While I have set up Part Category Parameter Templates forTolerance
andVoltage
in Inventree Admin tool I removed it forValue
.After removing the Parameter template for
Voltage
as well, the parameter will be created and populated correctly.It appears that the parameters are skipped if they are already created as an effect of the template. This is not an issue by itself, as they do not need to be created (again) because they already exist (due to the template). The issue, however, is that for the skipped parameters the value will not be populated and left empty.
A workaround is to update the create part after creation by checking the
Update existing
box in invenTree page. The fact that this work also tells me that the linking of the parameters generally is setup correctly. However, this is an unnecessary manual step that requires me to copy paste the IPN from InvenTree back into Ki-nTree and run the update.The text was updated successfully, but these errors were encountered: