Skip to content

[19.0][MIG] website_sale_product_matrix: Migration to version 19.0 - #1301

Merged
OCA-git-bot merged 15 commits into
OCA:19.0from
Tecnativa:19.0-mig-website_sale_product_matrix
Aug 27, 2026
Merged

[19.0][MIG] website_sale_product_matrix: Migration to version 19.0#1301
OCA-git-bot merged 15 commits into
OCA:19.0from
Tecnativa:19.0-mig-website_sale_product_matrix

Conversation

@cristina-hidalgo-tecnativa

Copy link
Copy Markdown
Contributor
  • The add-to-cart button moved out of website_sale.product into a new website_sale.cta_wrapper template, so the "Configure options" button/hidden add-to-cart xpaths were moved there too.
  • The variant selector is no longer wrapped in a t-placeholder="select", so the xpath hiding it was adjusted accordingly.
  • website_sale.add_to_cart_redirect no longer exists in 19.0 (removed along with it), so the template and JS code relying on it (product-add-mode html attribute / stayOnPageOption) were dropped as dead code.
  • website.sale_get_order() was replaced by request.cart / website._create_cart() in the controller and in the matrix modal template.
  • The legacy publicWidget.registry.WebsiteSale widget was removed in 19.0, so the JS was rewritten as its own small widget instead of extending it.

@Tecnativa TT64162
@pedrobaeza @pilarvargas-tecnativa

chienandalu and others added 2 commits August 21, 2026 12:30
Currently translated at 100.0% (8 of 8 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_product_matrix/es/
@OCA-git-bot OCA-git-bot added series:19.0 mod:website_sale_product_matrix Module website_sale_product_matrix labels Aug 21, 2026
@cristina-hidalgo-tecnativa
cristina-hidalgo-tecnativa force-pushed the 19.0-mig-website_sale_product_matrix branch from cabea64 to 9067146 Compare August 21, 2026 14:30
pedrobaeza and others added 12 commits August 21, 2026 16:32
Currently translated at 100.0% (8 of 8 strings)

Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/ca/
Currently translated at 100.0% (8 of 8 strings)

Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/es/
Currently translated at 100.0% (8 of 8 strings)

Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/ca/
Currently translated at 100.0% (7 of 7 strings)

Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_matrix
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_matrix/it/
…atrix products

The matrix add mode was hiding the standard variant selector by adding a
`t-if` on the `select` placeholder. This removed the whole block from the DOM,
including the hidden `product_id` / `product_template_id` inputs and the
standard variant selection data.

This breaks features that rely on the selected variant being available in the
website product page, such as the dynamic alternative products filter. When the
selector is not rendered, there is no selected variant/product context for the
filter to use, so alternative products are not found.

Instead of removing the selector, keep it rendered and only add `d-none` to the
variant list through `ul_class` when the product uses matrix mode. This keeps the
standard website_sale data available for frontend widgets while preserving the
matrix UI as the visible product configurator.

TT62939
@cristina-hidalgo-tecnativa
cristina-hidalgo-tecnativa force-pushed the 19.0-mig-website_sale_product_matrix branch from 9067146 to 90326c4 Compare August 21, 2026 14:32
Comment thread website_sale_product_matrix/templates/product_template.xml Outdated
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration website_sale_product_matrix

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Aug 24, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 24, 2026
35 tasks
Comment thread website_sale_product_matrix/templates/product_template.xml Outdated
Comment thread website_sale_product_matrix/templates/product_template.xml Outdated
@cristina-hidalgo-tecnativa
cristina-hidalgo-tecnativa force-pushed the 19.0-mig-website_sale_product_matrix branch from 90326c4 to 8cc4505 Compare August 25, 2026 09:18
@cristina-hidalgo-tecnativa

Copy link
Copy Markdown
Contributor Author

@pedrobaeza could you please review it?

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing it on runboat, one problem I see is if you wishlist the template, on the wishlist view, you don't have the matrix on it, but the regular configurator one, but I suppose this problem also exists in the previous version, and it will require a website_sale_wishlist_product_matrix glue module. Just mention it in the ROADMAP.

@cristina-hidalgo-tecnativa
cristina-hidalgo-tecnativa force-pushed the 19.0-mig-website_sale_product_matrix branch from 86a3d80 to f4a6567 Compare August 26, 2026 08:35
@cristina-hidalgo-tecnativa

Copy link
Copy Markdown
Contributor Author

Testing it on runboat, one problem I see is if you wishlist the template, on the wishlist view, you don't have the matrix on it, but the regular configurator one, but I suppose this problem also exists in the previous version, and it will require a website_sale_wishlist_product_matrix glue module. Just mention it in the ROADMAP.

Added it to the ROADMAP.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-1301-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 6119f7f into OCA:19.0 Aug 27, 2026
8 of 9 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at a99c7fe. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 19.0-mig-website_sale_product_matrix branch August 27, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants