Skip to content
Snippets Groups Projects
Commit a7df631c authored by david's avatar david Committed by Abdelouahab (abla)
Browse files

[FIX] website_sale: recently viewd multi company


If a user has a website.track with a product from another company than
the one he is currently using, an access rule error will popup.

Several scenarios can trigger this error, but the easiest one would be:

- Activate recently viewed products in the e-commerce.
- Create a product and publish it.
- The portal user visits it and a website.track linked to that product
is created.
- From backend, change the company of the product to one that is
unreachable for the portal user or the website environment he is in.
- Now when the portal user visits another product, an error will show up
warning about the unability to load the recently viewed product.

So only products in the context of the request should be loaded as
recently viewed.

TT36698

closes odoo/odoo#93399

closes odoo/odoo#93467

X-original-commit: 0e54d3db
Related: odoo/enterprise#28629
Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 3186b261
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment