[FIX] website_sale: fix ecommerce product rating acl check - #257553
Closed
fw-bot wants to merge 1 commit into
Closed
[FIX] website_sale: fix ecommerce product rating acl check#257553fw-bot wants to merge 1 commit into
fw-bot wants to merge 1 commit into
Conversation
Contributor
Contributor
Author
|
@krip-odoo @ltinel cherrypicking of pull request #256570 failed. stdout: Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
Steps to produce: - Install the `Ecommerce` module. - Create a product. - In the Sales tab, set an alternative product and ensure both are published. - Open the product page on the website and enable `reviews` from the editor. - Open the same product page in incognito mode. Issue: ``` AccessError: You do not have enough rights to access the field "rating_avg" on Product Variant (product.product). ``` Root cause: - Currently, product records in dynamic snippets to be fetched without superuser privileges. Since the `rating_avg` field is restricted to internal users, public visitors encounter an `AccessError` when viewing snippets with ratings enabled. - Similar approach used [here]. [here]: odoo@12bb994 opw-6065319 X-original-commit: f32c5b2
krip-odoo
force-pushed
the
saas-19.2-saas-18.3-opw-6065319-rating-avg-access-issue-krip-514472-fw
branch
from
April 3, 2026 12:36
5fe217e to
9f2f8cb
Compare
Contributor
|
@robodoo r+ |
robodoo
pushed a commit
that referenced
this pull request
Apr 3, 2026
Steps to produce: - Install the `Ecommerce` module. - Create a product. - In the Sales tab, set an alternative product and ensure both are published. - Open the product page on the website and enable `reviews` from the editor. - Open the same product page in incognito mode. Issue: ``` AccessError: You do not have enough rights to access the field "rating_avg" on Product Variant (product.product). ``` Root cause: - Currently, product records in dynamic snippets to be fetched without superuser privileges. Since the `rating_avg` field is restricted to internal users, public visitors encounter an `AccessError` when viewing snippets with ratings enabled. - Similar approach used [here]. [here]: 12bb994 opw-6065319 closes #257553 X-original-commit: f32c5b2 Signed-off-by: Louis Tinel (loti) <loti@odoo.com> Signed-off-by: Krishna Arvindkumar Patel (krip) <krip@odoo.com>
fw-bot
deleted the
saas-19.2-saas-18.3-opw-6065319-rating-avg-access-issue-krip-514472-fw
branch
April 10, 2026 18:18
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.

Steps to produce:
Ecommercemodule.reviewsfrom the editor.Issue:
Root cause:
superuser privileges. Since the
rating_avgfield is restricted tointernal users, public visitors encounter an
AccessErrorwhenviewing snippets with ratings enabled.
opw-6065319
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #257400
Forward-Port-Of: #256570