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

Updated to work with latest InvenTree API + various improvements. #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Slan85
Copy link

@Slan85 Slan85 commented Aug 4, 2022

No description provided.

ServiusHack and others added 6 commits June 9, 2021 10:36
The method `getorCreateLocation` was only looking for existing storage
locations with a matching name but never created one. This leads to the
following error if a storage location doesn't exist yet:

    Traceback (most recent call last):
      File "migratePKCategories.py", line 132, in <module>
        'location' : itloc.pk
    AttributeError: 'int' object has no attribute 'pk'

With this change the storage location is created if it doesn't exist yet
in InventTree.
The comment of a part in PartKeepr will become the notes of that part in
InvenTree.
The first image attachment will be used as the image of the part. All
other attachments will be uploaded as attachments to that part.

The InvenTree python module requires a local file to obtain the
filename, so each file is only downloaded when needed into a temporary
directory and removed afterwards.
… InvenTree settings moved in a config file for easier usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants