[19.0][MIG] website_sale_hide_empty_category: Migration to 19.0 - #1271
Open
prayagrk wants to merge 36 commits into
Open
[19.0][MIG] website_sale_hide_empty_category: Migration to 19.0#1271prayagrk wants to merge 36 commits into
prayagrk wants to merge 36 commits into
Conversation
* [ADD] website_sale_category_empty: Create module * Add module to hide categories that have no products associated with them * [FIX] website_sale_hide_empty_category: PR Fix * Add trailing comma to manifest * Rename Module
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-13.0/e-commerce-13.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_hide_empty_category/nl/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-13.0/e-commerce-13.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_hide_empty_category/ca/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-13.0/e-commerce-13.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_hide_empty_category/es/
- Create setUpClass method if necessary - Switch to setUpClass for avoiding repeat the same setup for each test. - Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/it/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/ca/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/es/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/nl/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/it/
Currently translated at 0.0% (0 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/pt_BR/
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
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/sl/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-18.0/e-commerce-18.0-website_sale_hide_empty_category Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_hide_empty_category/sl/
Contributor
|
/ocabot migration website_sale_hide_empty_category |
Contributor
Author
|
@ivantodorovich @remytms @wpichler , Please have a look at this PR. Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
website_sale_hide_empty_category: Migration to 19.0