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

Custom Stock Status filter does not work #8612

Open
3 of 6 tasks
gunstr opened this issue Dec 1, 2024 · 4 comments
Open
3 of 6 tasks

Custom Stock Status filter does not work #8612

gunstr opened this issue Dec 1, 2024 · 4 comments
Labels
question This is a question

Comments

@gunstr
Copy link

gunstr commented Dec 1, 2024

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

With reference to #7990

When a Custom State is assigned to a Stock Item and also selected as a filter no items are being displayed in a Stock Item list.

Steps to Reproduce

This has only been reproduced on the Demo system

  1. Create a Custom Status like this (Is this correct?)
    Image
  2. Assign the Custom Status to a Stock Item for a part where there are a couple of Stock Items (I used the first part 1551ABK in the demo database)
  3. Show a list of stock items (all or the stock for the 1551ABK part
  4. Set a Status filter, the Custom State can be selected there
  5. The list of Stock Items is blank
  6. If th filter instead is set to "OK" (the base Status that the Custom Status is assiciated to), then Stock items with the OK status is visible as well as the items with the Custom Status

So it seems that the list is filterd based on the "Base Status" rather then the Custom Status.

Expected behaviour

Custom Status should be used as filter

Deployment Method

  • Docker
  • Package
  • Bare metal
  • Other - added info in Steps to Reproduce

Version Information

InvenTree-Version: 0.17.0 dev
Django Version: 4.2.16
Commit Hash: 7a3ceb9
Commit Date: 2024-11-30
Commit Branch: null
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-100-generic-x86_64-with
Installer: DOC
nullActive plugins: false

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

@gunstr gunstr added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team labels Dec 1, 2024
@matmair
Copy link
Member

matmair commented Dec 1, 2024

That is as intended, you are filtering against status, not custom status.

@matmair matmair removed bug Identifies a bug which needs to be addressed triage:not-checked Item was not checked by the core team labels Dec 1, 2024
@gunstr
Copy link
Author

gunstr commented Dec 1, 2024

@matmair how do you mean I should do that? In the filter selection list I can only see "Status" and when I select that the "TestStatus" I created is in the list. So what am I doing wrong?

Image

@SchrodingersGat
Copy link
Member

I would expect that the "custom stock status" values would appear here.

This will be rectified in #8438

@gunstr
Copy link
Author

gunstr commented Dec 3, 2024

@SchrodingersGat Not sure I fully understand what you mean, but to further clarify what I see as the issue:

The starting point is a part with one of the stock item assigned with a "custom stock status", TestState in this case.

Image

The "custom stock status" TestState is populated and selectable in the Status filter value drop down as in the screenshot in my previous comment, so far as expected.

Image

But with that filter applied the list of stock items is empty, I would expect the stock item with "TestState" status to be visible.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question
Projects
None yet
Development

No branches or pull requests

3 participants