Dear all,
I want to add Whatsapp icon on website. When click on this icon Whatsapp will open. But I want to add a default message on this link. This message will be in a filed.
class Website(models.Model):
_inherit = 'website'
whatsapp_mobile_number = fields.Char(string='Mobile Number')
whatsapp_message_text = fields.Char(string='Whatsapp Message')
How can i add
whatsapp_message_text
field value in the following code?
\https://api.whatsapp.com/send?phone=#{website.mobile_number}"
class="cy_whatsapp_web" target="_blank">
Best regards