Skip to content

Syncing from upstream OCA/e-commerce (15.0)#929

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

Syncing from upstream OCA/e-commerce (15.0)#929
bt-admin merged 36 commits into
brain-tec:15.0from
OCA:15.0

Conversation

@bt-admin
Copy link
Copy Markdown

@bt-admin bt-admin commented Jun 5, 2026

bt_gitbot

AungKoKoLin1997 and others added 30 commits February 9, 2026 02:38
[ADD] website_sale_cart_selectable
Odoo upstream has changed its classes, and the selectors taken were very variable.
Use better ones.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 100.0% (2 of 2 strings)

Translation: e-commerce-12.0/e-commerce-12.0-website_sale_cart_selectable
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_cart_selectable/es/
Currently translated at 100.0% (2 of 2 strings)

Translation: e-commerce-12.0/e-commerce-12.0-website_sale_cart_selectable
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_cart_selectable/fr/
Currently translated at 100.0% (2 of 2 strings)

Translation: e-commerce-12.0/e-commerce-12.0-website_sale_cart_selectable
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_cart_selectable/ca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-12.0/e-commerce-12.0-website_sale_cart_selectable
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_cart_selectable/
Added _is_add_to_cart_allowed() to add a server-side guard. When website_btn_addtocart_published is false, _is_add_to_cart_allowed() returns false, which prevents the product
 from being added to the cart via _cart_update() by bypassing the button.
Signed-off-by ivantodorovich
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_hide_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_hide_price/
@bt-admin bt-admin added the 15.0 label Jun 5, 2026
@bt-admin bt-admin merged commit f1398c1 into brain-tec:15.0 Jun 5, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.67%. Comparing base (c8e9ec4) to head (45837a2).
⚠️ Report is 151 commits behind head on 15.0.

Files with missing lines Patch % Lines
...ite_sale_cart_selectable/models/product_product.py 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             15.0     #929      +/-   ##
==========================================
- Coverage   92.69%   92.67%   -0.03%     
==========================================
  Files         282      286       +4     
  Lines        2808     2825      +17     
  Branches      256      257       +1     
==========================================
+ Hits         2603     2618      +15     
- Misses        139      140       +1     
- Partials       66       67       +1     

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