Repository navigation
State transition support for generic states - #6017
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Can you provide some end-goal examples of how this transition management would be used? |
|
@SchrodingersGat I will provide a sample implementation |
…added-state-transitions
…added-state-transitions
|
@SchrodingersGat this would be ready for review; is the sample code added enough to understand the use case? |
|
@matmair this looks good to me. I would like to see this added to the |
|
@SchrodingersGat I will look into that. The way those models work is a bit different from orders so I will have to check what impacts the change would have. |
Fixes inventree#6136 Error introduced in inventree#6017

This WIP PR adds the option to define methods that should be called when objects transition between states.
Missing: