fix(ui): show initial stock fields when PART_CREATE_INITIAL enabled#12415
Merged
SchrodingersGat merged 8 commits intoJul 20, 2026
Merged
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Disable Redis disk persistence to avoid bind-mount permission errors that caused login 500s, and configure localhost as the default site URL.
SchrodingersGat
approved these changes
Jul 19, 2026
Member
|
@br413 if you setup our pre-commit hooks - https://docs.inventree.org/en/stable/develop/contributing/?h=setup+dev#setup-devtools - then these style issues will be fixed automatically |
Fixes Style [prek] CI failure on PR inventree#12415.
Avoid strict-mode violations from getByText('Initial Stock') matching multiple form elements.
Avoid strict-mode violations from duplicate Stock tabs on the part page.
Avoid duplicate status_custom_key ORM bug in historical StockItem models.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #12415 +/- ##
==========================================
- Coverage 86.91% 86.90% -0.01%
==========================================
Files 1439 1440 +1
Lines 94646 94620 -26
Branches 11189 11159 -30
==========================================
- Hits 82259 82233 -26
Misses 12322 12322
Partials 65 65
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Member
|
@br413 thanks for the contribution 👍 |
Contributor
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PART_CREATE_INITIALis enabled in admin settingsvirtual != falsegate withglobalSettings.isSet('PART_CREATE_INITIAL')inPartForms.tsxFixes #12266
Test plan
PART_CREATE_INITIALin settings — Initial Stock section appears in Add Part form