Thursday, December 21, 2023
2 changes · master
Enhancements to existing features
Live chat guest connections now use the standard channel subscription method instead of a special request context. This makes the connection flow more consistent and easier to maintain, with no expected change for end users.
Original PR description
In [1], a context object was added to websocket requests to subscribe to guests channels on cors live chats. However, the common mechanism to subscribe to record channels is to pass a string channel that will then be validated by the `_subscribe` method of `ir_websocket`. This PR removes the mechanism introduce in [1] in favor of the string approach. [1]: https://github.com/odoo/odoo/pull/130052
Website image fields can now show a chosen fallback image when no image is available, instead of the generic camera placeholder. This helps pages look more polished while still supporting existing image sizing and zoom behavior.
Original PR description
Purpose ======= Adding the possibility to choose the default image displayed when the image field / preview image field are empty. The "camera with + icon" default image being quite ugly, this adds a way to fallback on a different image giving a prettier display on the website. Specifications ============== Adding a new option to the image qweb field called 'default_preview_image' which takes an image file path. If the image field / preview image field are empty and this option is specified, using this image for default. Adding an option directly to the image qweb to keep the hook on the field when using the website editor. The zoom and resizing (resize, max_width, max_height) options are also applied on the default image. Task-3607606 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr