Skip to main content

Widget WhatsApp Message Button

Project description

License: AGPL-3

Widget WhatsApp Message Button

This module adds a new field widget named whatsapp_message for Odoo 14.

When applied to a Char field containing a phone number, the widget renders a single clickable WhatsApp icon button in view (readonly) mode. In edit mode the field behaves as a standard text input so the number can still be edited.

Clicking the button opens a new browser tab pointing to https://wa.me/<phone_number>, allowing the user to start a WhatsApp conversation directly from Odoo.

Usage

Add widget="whatsapp_message" to any <field> tag that stores a phone number:

<field name="mobile" widget="whatsapp_message"/>
<field name="phone"  widget="whatsapp_message"/>

The phone number stored in the field should be in international format (e.g. +628123456789 or 628123456789). Non-numeric characters such as spaces, dashes, parentheses and the leading + are stripped automatically before building the WhatsApp URL.

Bug Tracker

Bugs are tracked on GitHub Issues.

Credits

Authors

  • PT. Simetri Sinergi Indonesia

  • OpenSynergy Indonesia

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo14_addon_ssi_web_widget_whatsapp-14.0.1.0.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_web_widget_whatsapp-14.0.1.0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 473c8babe41def660c80c2dbdce152d7278ca5f6b2ea3f507c5be4ce0a646e2d
MD5 e1d09581c2331b22277994a594b55bbb
BLAKE2b-256 105b8ee324de407595795da1d5d58f821de49f89e9041b492e73d2d62e55907f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page