Skip to content

[1.7.x] [bug] Count transfer order allocations when validating build items (#13287) - #13289

Merged
SchrodingersGat merged 1 commit into
1.7.xfrom
backport/1.7.x/pr-13287
Nov 15, 2026
Merged

SchrodingersGat merged 1 commit into
1.7.xfrom
backport/1.7.x/pr-13287

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from master to 1.7.x:

Questions ?

Please refer to the Backport tool documentation

…13287)

BuildItem.check_allocated_quantity() summed build and sales order
allocations but not transfer order allocations, so stock that was
fully allocated to an open transfer order could be allocated again to
a build order via the API (POST /api/build/item/).

Include transfer_order_allocation_count() in the check, matching
StockItem.allocation_count() and bulk_allocation_count().

Fixes #13286

(cherry picked from commit 3572714)
@codecov

codecov Bot commented Nov 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.01%. Comparing base (04b2eb0) to head (abe53ad).

Additional details and impacted files
@@           Coverage Diff           @@
##            1.7.x   #13289   +/-   ##
=======================================
  Coverage   87.01%   87.01%           
=======================================
  Files        1566     1566           
  Lines      111575   111584    +9     
  Branches    12071    12071           
=======================================
+ Hits        97087    97100   +13     
+ Misses      14422    14418    -4     
  Partials       66       66           
Flag Coverage Δ
backend 91.35% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.85% <100.00%> (+<0.01%) ⬆️
Backend General 94.96% <ø> (ø)
Frontend 79.66% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit 3701f52 into 1.7.x Nov 15, 2026
39 of 40 checks passed
@SchrodingersGat
SchrodingersGat deleted the backport/1.7.x/pr-13287 branch November 15, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants