Files
odoo_source/addons/website_sale_stock_wishlist
Turkesh Patel 23ecf40ced [FW][FIX] website_sale_stock_wishlist: product not found
In the wishlist, if a product has no stock available, the customer can request to be notified when the product is "back in stock".

If a barcode is configured on the product, the request will fail with a "Missing record" error.

Indeed, the code relied on the tracking info (google analytics data) to find the product id.  This is a mistake since the barcode is given as `item_id` in the tracking info if set (instead of the product id).

Since the product id information is already available as node data, use this mean to get the right product id directly.

Fixes #130471

closes odoo/odoo#130949

Forward-port-of: odoo/odoo#130473
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-08-07 10:58:52 +02:00
..
…