Skip to content

Default stock currency (#10641) - #10644

Merged
SchrodingersGat merged 4 commits into
inventree:1.0.xfrom
SchrodingersGat:currency-fix-backport
Oct 21, 2025
Merged

SchrodingersGat merged 4 commits into
inventree:1.0.xfrom
SchrodingersGat:currency-fix-backport

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Backport of #10641

* Fix for useStockFields

- Use default currency

* Ensure default currency is observed

* Specify field default

* Improve import (for ty)

* Update migration files

- Point currency fields to the correct default method

* Unit tests

- Ensure stock item gets correct default currency

* Cleaner generation of default currency value

- Return empty string during migratoins

* Update existing migrations

* Reduce noise

* Ignore "no-matching-overload" rule for ty

* Tweak money_kwargs
@SchrodingersGat SchrodingersGat added this to the 1.0.8 milestone Oct 21, 2025
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed pricing Pricing functionality migration Data or schema migrations labels Oct 21, 2025
@SchrodingersGat SchrodingersGat added the full-run Always do a full QC CI run label Oct 21, 2025
@codecov

codecov Bot commented Oct 21, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.39%. Comparing base (f8bcc3e) to head (8dbecd8).
⚠️ Report is 9 commits behind head on 1.0.x.

Additional details and impacted files
@@            Coverage Diff             @@
##            1.0.x   #10644      +/-   ##
==========================================
+ Coverage   87.38%   87.39%   +0.01%     
==========================================
  Files        1266     1266              
  Lines       56580    56582       +2     
  Branches     2052     2052              
==========================================
+ Hits        49443    49452       +9     
+ Misses       6632     6625       -7     
  Partials      505      505              
Flag Coverage Δ
backend 89.10% <94.73%> (+0.01%) ⬆️
migrations 42.40% <42.10%> (-0.14%) ⬇️

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

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

@SchrodingersGat
SchrodingersGat merged commit 0dcb706 into inventree:1.0.x Oct 21, 2025
@SchrodingersGat
SchrodingersGat deleted the currency-fix-backport branch October 21, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed full-run Always do a full QC CI run migration Data or schema migrations pricing Pricing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant