-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
Fix stock location structural check #4089
Conversation
Exclude sub stock location items from preventing that a stock location can be switched to structural.
@bloemp thanks! Can you also make the same fix to the part category model: InvenTree/InvenTree/part/models.py Line 151 in d9e99e3
|
Exclude children of sub- locations/categories in the check to allow this location/category to be structural
@SchrodingersGat modified the pull request to include a fix for the part categorie. |
@bloemp looks good :) |
Thanks for your contribution @bloemp |
* Fix stock location structural check Exclude sub stock location items from preventing that a stock location can be switched to structural. * Fix structural check on both storage location and parts category Exclude children of sub- locations/categories in the check to allow this location/category to be structural (cherry picked from commit 14a2c12)
* Fix stock location structural check Exclude sub stock location items from preventing that a stock location can be switched to structural. * Fix structural check on both storage location and parts category Exclude children of sub- locations/categories in the check to allow this location/category to be structural (cherry picked from commit 14a2c12) Co-authored-by: bloemp <pbloem@upcmail.nl>
Exclude sub stock location items from preventing that a stock location can be switched to structural.
Closes #4087