Daily updates from Odoo
Thursday, January 29, 2026
1 change · 17.0
Resolved issues and error corrections
This update strengthens the website's stock notification system by adding validation to prevent unauthorized subscriptions and misuse of user accounts. Now, users attempting to subscribe for unavailable products or using existing user emails will be blocked, enhancing security and preventing potential issues.
Original PR description
Description of the issue/feature this PR addresses: Currently, in the website_sale_stock module, there is no backend validation when subscribing to notifications for products without stock. This…
Description of the issue/feature this PR addresses: Currently, in the website_sale_stock module, there is no backend validation when subscribing to notifications for products without stock. This allows public users to potentially use emails that belong to registered accounts. Current behavior before PR: - Users could subscribe to stock notifications for products that don’t exist or cannot be added (no stock). - Public users could use emails already associated with registered accounts, allowing them to subscribe on behalf of another user. - No validation is enforced, leading to potential security issues. Desired behavior after PR is merged: - Adding a subscription for a non-existent or unavailable product raises a ValidationError. - Public users trying to subscribe with an email that belongs to a registered user receive an AccessError prompting them to sign in first. - Backend validation prevents misuse of registered user emails and improves security. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr