GeezerVison is showing github.com — Where did the notes attribute go? · Issue #259 · inventree/inventree-python
Where did the notes attribute go? #259
Description
Since update to 17 the notes attribute on parts has vanished. The following does not work any longer:
part_to_update.save({ 'notes': 'Hello'})
print(part_to_update.notes)
AttributeError: 'Part' object has no attribute 'notes'
Any idea?
Activity
miggland commented on Jan 16, 2025
How did you get the part, through list(), or directly with a defined pk?
See this issue, it could be related: inventree/InvenTree#8672
The difference in that case is not in inventree-python, but in the API..
SergeoLacruz commented on Jan 16, 2025
ContributorAuthor
More actions
via Part.list(api) and then some further search in the list.
miggland commented on Jan 16, 2025
Probably you will be able to access the note if do something like
part_to_update = Part(api, pk=14)
SergeoLacruz commented on Jan 16, 2025
ContributorAuthor
More actions
In that way it works. Strange...
Thanks for the hint :-)
miggland commented on Jan 16, 2025
Yes, I agree. The reason is that getting a single item and the listing use different API endpoints.
The listing does not return notes, whereas the single item endpoint does, thus inventree/InvenTree#8672 ..
JJSteh commented on Jan 6, 2026
Seconding this issue a year later. I've confirmed Issue #8672 is the source still. Not sure how to get that issue reopened but I added a comment there as well.
SchrodingersGat commented on Jan 17, 2026
As discussed in the linked issue - this is an intentional decision to reduce overhead when fetching a large list of items
Metadata
Metadata
Development
No branches or pull requestsIssue actions