Skip to content

Syncing from upstream OCA/product-attribute (15.0) - #1607

Merged
bt-admin merged 3 commits into
brain-tec:15.0from
OCA:15.0
Jun 19, 2026
Merged

Syncing from upstream OCA/product-attribute (15.0)#1607
bt-admin merged 3 commits into
brain-tec:15.0from
OCA:15.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

CarlosRoca13 and others added 3 commits June 18, 2026 12:30
…e range matching

Comparing the price directly against the range bounds with `min <= price <= max` is subject to floating point precision errors: a value like 50.00 may be stored as 49.999999998 and fall outside a range starting at 50, wrongly raising "Discount range not found for the given price.".

Use tools.float_compare with the currency rounding so both operands are rounded before comparison, avoiding false negatives at the range boundaries.
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 15.0 label Jun 19, 2026
@bt-admin
bt-admin merged commit 0674b28 into brain-tec:15.0 Jun 19, 2026
4 checks passed
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.10%. Comparing base (c466fb8) to head (3d4a18e).
⚠️ Report is 156 commits behind head on 15.0.

Additional details and impacted files
@@           Coverage Diff           @@
##             15.0    #1607   +/-   ##
=======================================
  Coverage   86.09%   86.10%           
=======================================
  Files         300      300           
  Lines        4776     4777    +1     
  Branches      584      584           
=======================================
+ Hits         4112     4113    +1     
  Misses        519      519           
  Partials      145      145           

☔ View full report in Codecov by Harness.
📢 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.

3 participants