Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] website_sale_product_attribute_value_filter_existing: Migration to 18.0 #978

Conversation

pilarvargas-tecnativa
Copy link
Contributor

@pilarvargas-tecnativa pilarvargas-tecnativa commented Oct 23, 2024

cc @Tecnativa TT51372

@CarlosRoca13 @chienandalu please review

@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 18.0-mig-website_sale_product_attribute_value_filter_existing branch from 4064d94 to 7d06b7d Compare October 24, 2024 09:05
CarlosRoca13 and others added 4 commits October 24, 2024 11:35
… to 15.0

[UPD] Update website_sale_product_attribute_value_filter_existing.pot
…nature

match the function signature of shop with the original one from
website_sale, to avoid potential issues with other modules overwriting
the function and passing unexpected parameters
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 18.0-mig-website_sale_product_attribute_value_filter_existing branch from 7d06b7d to 34bf7ec Compare October 24, 2024 09:35
@pilarvargas-tecnativa pilarvargas-tecnativa marked this pull request as ready for review October 24, 2024 09:35
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 18.0-mig-website_sale_product_attribute_value_filter_existing branch 2 times, most recently from 6cd4ff0 to 6a29eb2 Compare October 24, 2024 13:20
pilarvargas-tecnativa and others added 7 commits October 24, 2024 15:42
…to check the real functionality of the module

TT45590
…ormance improvement

- Switch to setUpClass for avoiding repeat the same setup for each test.
- Include context keys for avoiding mail operations overhead.
…ibute parent container

If only the attribute container is hidden, the parent container still occupies a space that is visible in the attribute list. To avoid this, apply the condition to the parent container and hide it completely.

TT50704
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 18.0-mig-website_sale_product_attribute_value_filter_existing branch from 6a29eb2 to e046c79 Compare October 24, 2024 13:42
@pedrobaeza
Copy link
Member

/ocabot migration website_sale_product_attribute_value_filter_existing

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 25, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 25, 2024
8 tasks
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Tested in runboat

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-978-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d54a7e7 into OCA:18.0 Oct 28, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 18.0-mig-website_sale_product_attribute_value_filter_existing branch October 28, 2024 07:56
@Arozeo
Copy link

Arozeo commented Nov 8, 2024

@pilarvargas-tecnativa Thanks for your work on updating this website_sale_product_attribute_value_filter_existing module !

I'm trying to retrofit the v18 version to a 17.4 as I cannot update our database yet and I'm facing this exact problem

All possible values for a given attribute are displayed in front end filters even though only 2 or 3 are used on actual displayed product, which is nonsensical for eCommerce

This is very explicit for the Brand attribute for example, and should be standard IMO. Why display "Category A's brands" when looking at Category B

Would you have any input on how to do that retrofit, as the v17 version of this module was skipped 🙂?

I can import the module but then I suppose I end up with an empty attr_values_used because only the names of my attributes are displayed. Tried to tweak it a bit with ChatGPT as I am not a dev at all but without any success unfortunately

Many thanks

Eliott

@pedrobaeza

This comment was marked as resolved.

@Arozeo

This comment was marked as resolved.

@pedrobaeza

This comment was marked as resolved.

@Arozeo

This comment was marked as resolved.

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.