Skip to content

Where did the notes attribute go? #259

Open

Description

@SergeoLacruz

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

  1. miggland commented on Jan 16, 2025

    @miggland
    Contributor

    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..

  2. SergeoLacruz commented on Jan 16, 2025

    @SergeoLacruz
    ContributorAuthor

    via Part.list(api) and then some further search in the list.

  3. miggland commented on Jan 16, 2025

    @miggland
    Contributor

    Probably you will be able to access the note if do something like

    part_to_update = Part(api, pk=14)
    
  4. SergeoLacruz commented on Jan 16, 2025

    @SergeoLacruz
    ContributorAuthor

    In that way it works. Strange...
    Thanks for the hint :-)

  5. miggland commented on Jan 16, 2025

    @miggland
    Contributor

    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 ..

  6. JJSteh commented on Jan 6, 2026

    @JJSteh

    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.

  7. SchrodingersGat commented on Jan 17, 2026

    @SchrodingersGat
    Member

    As discussed in the linked issue - this is an intentional decision to reduce overhead when fetching a large list of items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions