Skip to content

Custom Stock Status #4289

Closed
Closed

Description

@Fluxus00

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

Problem statement

It would be more user friendly if you were able to customize your stock status options. As an example I would like to use a status like "tested", "in production" or similar ones. The current status options are not enough for me to use them properly.

Suggested solution

Enable the option to create custom status options in the admin menu.

Describe alternatives you've considered

Extending the amount of predefined status options.

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    triage:not-checked
    on Feb 1, 2023
  2. added
    stock
    and removed
    triage:not-checked
    on Feb 1, 2023
  3. matmair commented on Feb 1, 2023

    @matmair
    Member

    Hi there @Fluxus00!
    The values for stock status are hard-coded and intertwined with the wider StatusCode system at the moment. It would be possible - from my POV - to decouple shown names from business logic by creating linked categories in the database. Those could have customizable names. There are some things to watch out for regarding API integration, migration path for existing users, translating and object lifecycle. It seems to be possible with a bit of work.

    On my personal priority list, this is very low but if someone is interested I think we would be willing to give pointers, review and merge into core. If this is tackled, I would encourage the person doing so to migrate all StatusCode components as the additional work is probably comparatively small if you did it for one of the inheritors.

  4. gunstr commented on Feb 1, 2023

    @gunstr
    Contributor

    When I migrated to InvenTree a year back I had similar need as @Fluxus00 primarily because I have different reasons than what is hard coded to why stock should be treated as available and more important what should be included in overall inventory valuation and not. My first solution was to anyway use the status codes but with a note on my desk to translate between what I saw on the screen and the actual status.

    This was obviously error prone why I now in my local installation have changed the hard coded values in the StockStatus class. It works well for my use cases, only little drawback is that the status codes are obviously not propagated the app.

    I have seen FR's for the same being raised before why there is probably more people being interested. But as @matmair mention a proper solution comes with so much more and unfortunately I have not yet managed to build enough competence in the architecture to feel comfortable to volunteer for a full implementation. Maybe later this year when I have retired from my full time work...

    Just a thought - given the complexity of the current status code, would a "tag" field with no business logic impact and with configurable values be an option?

  5. matmair commented on Feb 1, 2023

    @matmair
    Member

    @gunstr ping me or @SchrodingersGat here if you want some pointers how this could be done. There are many ways to achieve the requested functionality.
    I will not provide a recommended way right now as the code base is moving somewhat fast and the references/names could change till you take a stab at it.

  6. added
    help wanted
    api
    on Feb 1, 2023
  7. SchrodingersGat commented on Feb 1, 2023

    @SchrodingersGat
    Member

    Ref: #4253

  8. SchrodingersGat commented on Feb 1, 2023

    @SchrodingersGat
    Member

    I think this makes sense to implement "fully" - make all stock status codes customizable by the user. This will give us more flexibility down the line too.

  9. added
    roadmap
    on Feb 1, 2023
  10. Fluxus00 commented on Feb 2, 2023

    @Fluxus00
    Author

    Thank you all for your replies! It seems like I was underestimating the amount of work my request would require.

    @gunstr Actually I am very interested into your solution. At the moment I am not using the app, so this would not be a problem.
    May be you would be so kind to share which values/ lines/ variables you changed? Until the official release it would definitely help me, and maybe also other users.

  11. matmair commented on Feb 2, 2023

    @matmair
    Member

    I would caution against forking and changing core code permanently. It will make regular updateing - which is very important in terms of security - a lot harder.

  12. 14 remaining items

  13. matmair commented on Apr 23, 2024

    @matmair
    Member

    I have a working backend implementation but I think I will need till 0.16.0 to get testing and UI done.

  14. modified the milestones: 0.15.0, 0.16.0 on Apr 23, 2024
  15. czkapitan2 commented on Jun 3, 2024

    @czkapitan2

    I joined this community recently - and after some Inventree testing, I also discovered the need for "special" locations that would not count towards the overall store . Now we solve this by marking the item as "LOST" but this means 2 steps when moving between locations : 1st step move, 2nd step mark as LOST ....:-) I'll try to "throw" funds into polar.sh ( unfortunately it's not only up to me:-) )

  16. wolflu05 commented on Jul 17, 2024

    @wolflu05
    Member

    I have a working backend implementation but I think I will need till 0.16.0 to get testing and UI done.

    @matmair May I ask what the current status is with this? Do you think this will make it into 0.16? Is there anything you need help with?

  17. modified the milestones: 0.16.0, 0.17.0 on Aug 5, 2024
  18. matmair commented on Aug 5, 2024

    @matmair
    Member

    I think I can file a PR for this tonight; I am still searching for some inefficient lookups but that would be solveable

  19. modified the milestones: 0.17.0, 0.16.0 on Aug 5, 2024
  20. modified the milestones: 0.16.0, 0.17.0 on Aug 19, 2024
  21. SchrodingersGat commented on Aug 21, 2024

    @SchrodingersGat
    Member

    Thank you @matmair for contributing to close this issue! ⭐

    The rewards from this issue, totaling $100, has been shared with you.

    What now?

    1. Create a Polar account
    2. See incoming rewards & setup Stripe to receive them
    3. Get payouts as backers finalize their payments

    If you already have a Polar account setup, you don't need to do anything.

  22. removed
    Seeking Funding
    on Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apienhancementhelp wantedroadmapstock

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions