Skip to content

Support physical units for BOM lines#11631

Open
SchrodingersGat wants to merge 12 commits intoinventree:masterfrom
SchrodingersGat:physical-bom-lines
Open

Support physical units for BOM lines#11631
SchrodingersGat wants to merge 12 commits intoinventree:masterfrom
SchrodingersGat:physical-bom-lines

Conversation

@SchrodingersGat
Copy link
Copy Markdown
Member

@SchrodingersGat SchrodingersGat commented Mar 30, 2026

This PR implements support for physical units in BOM items.

Tasks

  • Data / schema migrations
  • Update serializers and API endpoints
  • Continue to allow write to "quantity" field (if "raw_amount" field not present)
  • Logic for validating raw amount
  • Update existing unit tests
  • Additional unit tests for physical unit / quantity validation
  • Additional playwright tests
  • Update documentation
  • Update CHANGELOG.md
  • Perform data migration on demo dataset
  • Add non-numeric raw-amount values to demo dataset (for testing)

@SchrodingersGat SchrodingersGat added part Related to Part models api Relates to the API breaking Indicates a major update or change which breaks compatibility User Interface Related to the frontend / User Interface labels Mar 30, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit ea72c12
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/69da211e5e3f4a0008db7f67

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

❌ Patch coverage is 60.71429% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.22%. Comparing base (366d4c3) to head (0e4cac4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11631      +/-   ##
==========================================
- Coverage   91.35%   91.22%   -0.13%     
==========================================
  Files         967      968       +1     
  Lines       50242    50284      +42     
==========================================
- Hits        45897    45873      -24     
- Misses       4345     4411      +66     
Flag Coverage Δ
backend 89.12% <60.71%> (-0.13%) ⬇️

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

Components Coverage Δ
Backend Apps 91.52% <60.71%> (-0.18%) ⬇️
Backend General 93.41% <ø> (ø)
Frontend ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat SchrodingersGat added this to the 1.4.0 milestone Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API breaking Indicates a major update or change which breaks compatibility part Related to Part models User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support physical units for BOM lines

1 participant