Wednesday, April 16, 2025
1 change · master
Resolved issues and error corrections
Public website visitors now see the intended custom placeholder images for appointment-related products when no product image is set. This avoids fallback to a generic image and keeps appointment and sale pages visually consistent.
Original PR description
Placeholders were introduced in odoo/odoo@c52453f for meta products such as discounts, gift cards, event tickets, and appointments. Previously, access rights prevented public users from viewing these placeholders. Even when no image was linked to a record, access was denied due to read restrictions, defaulting to the generic placeholder instead of the custom one provided by `_get_product_placeholder_filename`. This commit overrides `_can_return_content` in relevant modules to allow proper access for public users, ensuring the intended placeholder is displayed. See also: - https://github.com/odoo/odoo/pull/205693