Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website_sale: ensure applied filters are preserved when sorting
Problem: When generating sorting URLs, the `post` dictionary only contains a single selected attribute. This is due to `request.params` only passing the first `attrib` parameter during dispatch, even though there can be multiple. Solution: Modify the `post` dictionary to store attributes as a list before passing it to the `_shop_get_query_url_kwargs` method. This ensures that all selected attributes are preserved and properly passed to the `keep` query parameters. Steps to reproduce: - Go to `/shop`. - Apply multiple attribute filters. - Change the sorting option. - Only the first selected attribute is applied in the filter. opw-4244895 closes odoo#187890 X-original-commit: 99c7bdd Signed-off-by: Valentin Chevalier <[email protected]> Signed-off-by: Walid Sahli (wasa) <[email protected]>
- Loading branch information