-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[refactor] PO receive fix #10174
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
Merged
SchrodingersGat
merged 23 commits into
inventree:master
from
SchrodingersGat:po-receive-fix
Aug 15, 2025
Merged
[refactor] PO receive fix #10174
SchrodingersGat
merged 23 commits into
inventree:master
from
SchrodingersGat:po-receive-fix
Aug 15, 2025
Conversation
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
- Make model operations more efficient
- Cache config map against the session cache
- Pass multiple line items in simultaneously - DB query optimization - Use bulk_create and bulk_update operations
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #10174 +/- ##
=======================================
Coverage 87.12% 87.12%
=======================================
Files 1258 1258
Lines 55883 55955 +72
Branches 2080 2078 -2
=======================================
+ Hits 48690 48753 +63
- Misses 6682 6691 +9
Partials 511 511
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
… into po-receive-fix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api
Relates to the API
order
Related to purchase orders / sales orders
refactor
User Interface
Related to the frontend / User Interface
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.
Improve API endpoint for receiving multiple line items against a purchase order.
Receiving items individually is very expensive (in terms of DB performance) and can cause the request to timeout.
Changes
receive_line_itemsmethod forPurchaseOrdermodelProfiling
Comparing the number of database queries when receiving
Nline items via the API:Tasks