Wednesday, December 13, 2023
2 changes · master
Enhancements to existing features
Live chat welcome messages and chatbot typing indicators are now handled through a cleaner internal mechanism. This makes the feature easier to maintain while preserving the same customer-facing chat experience.
Original PR description
Before this commit, the live chat welcome and chat bot typing messages were manually added to the thread during the `insert` method. We tend to remove `insert` method in favor of more declarative code (i.e. record computed fields). This PR adapts the code to use computed fields instead of the `insert` method. part of task-3488100
The payment link wizard now only shows the WhatsApp button when an approved template is available, preventing users from clicking an option that would fail. Administrators still see the button so they can set up the required templates when needed.
Original PR description
**PURPOSE:** When the Payment Link Generation wizard opens if there are no approved templates for `payment.link.wizard` model then the `WhatsApp` button will just be noise as it will return a `ValidationError`. **SPECIFICATION:** - Do not display the button if no approved templates for the record - Button should be always visible to admin users as they can create templates. task-[3573047](https://www.odoo.com/web#id=3573047&cids=2&menu_id=4720&action=4043&model=project.task&view_type=form)