[19.0][MIG] website_sale_product_attribute_filter_category: Migration to version 19.0 - #1295
Conversation
Translated using Weblate (Finnish) Currently translated at 100.0% (6 of 6 strings) Translation: e-commerce-12.0/e-commerce-12.0-website_sale_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_attribute_filter_category/fi/
Currently translated at 100.0% (4 of 4 strings) Translation: e-commerce-13.0/e-commerce-13.0-website_sale_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_attribute_filter_category/es/
Currently translated at 100.0% (4 of 4 strings) Translation: e-commerce-13.0/e-commerce-13.0-website_sale_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_attribute_filter_category/ca/
…ttribute_filter_category: Migration to version 15.0 TT37008
…utes_collapsible template + migration script TT41345
…ion in menu "/shop/Customize". TT41498
Currently translated at 100.0% (4 of 4 strings) Translation: e-commerce-15.0/e-commerce-15.0-website_sale_product_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_product_attribute_filter_category/es/
…rsion 18.0 TT58477
Currently translated at 75.0% (3 of 4 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_product_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_product_attribute_filter_category/nl/
Currently translated at 100.0% (4 of 4 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_product_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_product_attribute_filter_category/ca/
Currently translated at 100.0% (4 of 4 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_product_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_product_attribute_filter_category/es/
Currently translated at 25.0% (1 of 4 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_product_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_product_attribute_filter_category/fi/
Currently translated at 100.0% (5 of 5 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_product_attribute_filter_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_product_attribute_filter_category/it/
|
/ocabot migration website_sale_product_attribute_filter_category |
473c3d9 to
1e7dccf
Compare
1e7dccf to
8364e99
Compare
8364e99 to
071e01f
Compare
Could you please review it again? About the question, no migration script is needed. When updating an existing So a DB that had "Group by categories" enabled in 18.0 keeps it enabled after upgrading — only |
There was a problem hiding this comment.
OK, now it works correctly on runboat, although 2 observations:
- The slider is not next to "Collapse sidebar sections", which is related.
- The new categories are collapsible by default, not respecting this other option.
And about migration, I'm still not sure, as if the previous view was active in 17/18, then when migrating, it's kept with noupdate=1, and not getting the new view spec. Let's see if @pilarvargas-tecnativa can confirm.
|
This is one of the views that are duplicated when they are specifically enabled for a website. Those copies associated with the website are not updated when the module is updated; only the original view is updated. Therefore, I believe a migration script with website context would indeed be necessary. |
|
I think this is a general problem for any activable view. We can try to mark all of those views to check if they are the same as the website_id=null ones, and if so, then update them after the migration with the new content of the agnostic view. |
18b0eda to
ab370da
Compare
ab370da to
4a3cc77
Compare
pilarvargas-tecnativa
left a comment
There was a problem hiding this comment.
Could we handle the duplicated IDs directly in the QWeb template instead of adding a JavaScript interaction to modify them after rendering? I think it would be cleaner to fix the IDs and their references at the template level, while keeping $0 to reuse the original Odoo template. If JavaScript is strictly necessary, could you explain why this cannot be handled in XML?
Also, the current layout looks quite different from the standard Odoo 19 filters. The category headings, spacing and nested attribute filters should be adjusted to better match the native sidebar design.




ProductsListPageOptionextension) instead of the removedwe-checkbox.products_attributestoproduct_attribute_filters_form, keeping the same$0-replace technique, with unique ids per category to avoid collisions between the sidebar and offcanvas renders.shop()override to match the new core signature and param names; userequest.env._()per current translation convention.@Tecnativa TT64160
@pedrobaeza @pilarvargas-tecnativa