Wednesday, December 20, 2023
1 change · master
Enhancements to existing features
The WhatsApp button in the chatter is now hidden when no approved templates are available for the current document type, reducing confusing dead-end actions for users. Administrators still see the button so they can create or configure templates, with setup opening directly filtered to the relevant model.
Original PR description
**PURPOSE:** If there are no approved templates for the model then the `WhatsApp` button will just be noise as it will return a `ValidationError`. **SPECIFICATIONS:** - Do not display the button if no approved templates for the model - Button should be always visible to admin users as they can create templates. - After clicking on `Configure Templates` button in the warning popup the `Whatsapp Templates` should be opened with a filter for the current model. task-[3497496](https://www.odoo.com/web#id=3497496&cids=2&menu_id=4720&model=project.task&view_type=form)