Skip to content

[FIX] website_sale_product_reference_displayed: fix snippet filter signatures#1184

Merged
OCA-git-bot merged 2 commits into
OCA:18.0from
versada:18.0-fix-website-snippet-filter-kwargs
Jun 5, 2026
Merged

[FIX] website_sale_product_reference_displayed: fix snippet filter signatures#1184
OCA-git-bot merged 2 commits into
OCA:18.0from
versada:18.0-fix-website-snippet-filter-kwargs

Conversation

@maciej-wichowski

Copy link
Copy Markdown
Contributor

Replace positional context argument with **kwargs in all _get_products_* handler overrides to match the core Odoo signature. The old signature caused a TypeError when product_template_id was passed as a keyword argument (e.g. on the alternative products filter).

…gnatures

Replace positional `context` argument with `**kwargs` in all
`_get_products_*` handler overrides to match the core Odoo signature.
The old signature caused a TypeError when `product_template_id` was
passed as a keyword argument (e.g. on the alternative products filter).
@maciej-wichowski

Copy link
Copy Markdown
Contributor Author

FYI @kobros-tech

@kobros-tech

Copy link
Copy Markdown
Contributor

Thanks, can we work on the tests?

I am happy to help with that if you need.

@maciej-wichowski

Copy link
Copy Markdown
Contributor Author

Thanks, can we work on the tests?

I am happy to help with that if you need.

@kobros-tech thanks, no need, I will prepare the tests.

@maciej-wichowski

Copy link
Copy Markdown
Contributor Author

@kobros-tech done. Could you review, please?

@ivantodorovich ivantodorovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-1184-by-ivantodorovich-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 1b3b785 into OCA:18.0 Jun 5, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

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.

4 participants