[WIP]Add support for part query from TME #115
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@eeintech
in the #87 this topic came up and I would rather continue the discussion here to prevent off-topic:
TME is a polish supplier company for electrical parts. They have a quite comprehensive json based API.
The thing what I wanted to discuss (and why I started to work on the category selection) is the fact that they have a quite usable and localized! category tree which could be accessed via their API (~1500 categories).
For new InvenTree users (like me) it could be a reasonable action to pull their category tree.
I have implemented it in a dumb manner: I added a button to the TME settings, it retrieve the category tree and create all categories:
During the process it blocks the UI at the moment.
What do you think about including this feature into Ki-n-tree?
As this feature for me was a one-shot thing I can remove it from the PR.
If you have willing to accept it I would like to sophisticate it with a messagebox saying something like: