Skip to content

Syncing from upstream OCA/e-commerce (17.0)#918

Merged
bt-admin merged 6 commits into
brain-tec:17.0from
OCA:17.0
May 19, 2026
Merged

Syncing from upstream OCA/e-commerce (17.0)#918
bt-admin merged 6 commits into
brain-tec:17.0from
OCA:17.0

Conversation

@bt-admin
Copy link
Copy Markdown

bt_gitbot

pilarvargas-tecnativa and others added 6 commits May 13, 2026 15:56
Avoid replacing `website_ids` from the `website_id` inverse.

In this addon, `website_ids` is the source of truth and `website_id`
is kept as a computed compatibility field containing the first assigned
website.

The previous inverse replaced the full `website_ids` relation with the
single `website_id` value. This could silently drop website assignments
when editing `website_ids` or when legacy code wrote directly on
`website_id`.

Make the inverse non-destructive by adding the written `website_id` to
`website_ids` instead of replacing the whole relation.

TT61624
Signed-off-by pedrobaeza
Use `sale_product_domain()` when checking whether a public category has
products.

This computation controls the visibility of categories in the e-commerce
navigation, so it should rely on the same product availability domain used
by the shop.

Calling `website.website_domain()` directly only applies the generic
website filter. This bypasses customizations done on `sale_product_domain()`
and may mark a category as empty even when it contains products that are
actually available in the current shop.

Using `sale_product_domain()` keeps category visibility aligned with the
shop product search.

TT62516
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 17.0 label May 19, 2026
@bt-admin bt-admin merged commit 80c1f13 into brain-tec:17.0 May 19, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.16%. Comparing base (5450404) to head (d43b850).
⚠️ Report is 74 commits behind head on 17.0.

Additional details and impacted files
@@            Coverage Diff             @@
##             17.0     #918      +/-   ##
==========================================
+ Coverage   90.09%   90.16%   +0.06%     
==========================================
  Files         177      177              
  Lines        1847     1860      +13     
  Branches      146      147       +1     
==========================================
+ Hits         1664     1677      +13     
  Misses        145      145              
  Partials       38       38              

☔ 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.

3 participants