Skip to content

Conversation

@bt-admin
Copy link

bt_gitbot

CarlosRoca13 and others added 16 commits December 17, 2025 22:46
…ite_sale_stock_available

When website_sale_stock_available is installed, the grid view is showing
different allowed quantities than when we access to the products sheet.

With this changes we add compatibility with this module and if
stock_available_immediately is installed we will get same value.

TT38689
As the value of available_threshold was set by default if some
module decrease this default, the test will fail, because the
text rendered will be "In stock" instead of "5.000 Units available".
Since the changes introduced in odoo/odoo@a8c73eb
we need to pass to the template of the remaining units to the function formatQuantity. So we
need to pass the function.

The steps to reproduce the error:
1. Edit some product, example Customizable Desk
2. Select the option Show Available Qty and set it to 999999
3. Go to /shop

You will see the error
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 18.0 label Dec 23, 2025
@bt-admin bt-admin merged commit d76ce65 into brain-tec:18.0 Dec 23, 2025
4 checks passed
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.96%. Comparing base (ad9c454) to head (d9ce7b1).
⚠️ Report is 67 commits behind head on 18.0.

Files with missing lines Patch % Lines
...ebsite_sale_stock_list_preview/controllers/main.py 88.88% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0     #885      +/-   ##
==========================================
+ Coverage   88.81%   88.96%   +0.14%     
==========================================
  Files         171      176       +5     
  Lines        1985     2029      +44     
  Branches      135      138       +3     
==========================================
+ Hits         1763     1805      +42     
- Misses        189      190       +1     
- Partials       33       34       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants