Skip to Content
Catalog / COM · Communication / AlShayebCo WhatsApp Multi-Provider
AlShayebCo WhatsApp Multi-Provider
ac_whatsapp_extend

AlShayebCo WhatsApp Multi-Provider

Send and receive WhatsApp through low-cost web gateways or Meta, without number bans

v19.0.1.0.0 AlShayeb Partners Communication

Inherits whatsapp account/whatsapp message/whatsapp template/discuss channel/contact. A provider Selection (meta/whapi/wasender) drives a _get_gateway_api() factory returning WhapiApi or WasenderApi (both subclass enterprise WhatsAppApi via a shared GatewayApi base, no monkeypatch). whatsapp message _send_message splits the recordset so Meta goes through super() unchanged and gateway messages send text/media/template-as-text directly; whatsapp account _process_messages handles gateway inbound. Public controllers /whatsapp/whapi/webhook (channel_id match + X-AC-WH-Token) and /whatsapp/wasender/webhook (X-Webhook-Signature hmac) normalize provider payloads into Meta-shaped values. base_automation rules call _ac_autosend to queue templates via the composer (force_send_by_cron) in a separate transaction. New model ac.whatsapp.autosend.log gives idempotency via a UniqueIndex on (res_model, res_id, event_key).

Overview

Odoo's standard WhatsApp only works through Meta's Cloud API, which requires pre-approved templates and risks number bans for marketing-style messaging. This module adds two WhatsApp-Web gateway providers (Whapi.Cloud and WaSenderAPI) alongside Meta, so you drive a real connected number that sends free text and media with no template approval. It keeps the full Odoo experience intact: two-way Discuss conversations, the same account screen, status tracking, and even mirroring messages you type from the phone itself, plus optional automatic customer notifications on business events.

Workflow

Whatsapp Account

Unknown
Disconnected
Needs Scan
Connected

Key Features

  • Adds Whapi.Cloud, WaSenderAPI and a self-hosted whatsmeow gateway as WhatsApp providers next to Meta, switchable per account.
  • Self-hosting option keeps the WhatsApp session on your own server: no gateway subscription, no third party holding the number.
  • Sends free-text messages and media (images, video, audio, documents) without Meta template approval.
  • Receives inbound replies as two-way Discuss conversations with no 24-hour reply window.
  • Mirrors messages you send directly from the WhatsApp phone app back into Odoo as outgoing.
  • One-click Test Connection and automatic webhook registration (Whapi) or guided setup (WaSender dashboard, whatsmeow environment file).
  • Auto-generates ready-to-use Arabic and English templates for whichever apps are installed (sales, invoices, deliveries, payments, helpdesk, projects).
  • Optionally WhatsApps customers automatically on confirmed orders, posted invoices, deliveries, payments, closed tickets, and finished tasks, attaching the relevant PDF.
  • Downloads encrypted inbound media and renders voice notes as playable audio in Discuss.
  • Tracks WaSender session health (connected, disconnected, needs-scan) with chatter alerts to operators.
  • Protects a young number from bans with a warm-up send limit that grows as the number ages, and filters which inbound chats open a conversation.
  • Keeps Meta accounts byte-identical to standard Odoo, with secure webhook authentication, SSRF-guarded media downloads, and a refusal to talk to a remote gateway over cleartext HTTP.

Technical Details

Technical Name ac_whatsapp_extend
Version 19.0.1.0.0
License LGPL-3
Domain COM · Communication

Security

Adds one new model, the auto-send log, which records each automatic notification for audit and to prevent duplicate sends. All internal users can read it, while only system administrators can create, edit, or delete entries. Gateway tokens, webhook secrets, and QR codes are restricted to WhatsApp administrators; everything else reuses Odoo's standard WhatsApp permissions.

Internal Users (read-only on the auto-send log) Settings / System administrators (full control of the auto-send log) WhatsApp Administrator (gateway tokens, webhook secrets, last QR code)

Dependencies

whatsapp base_automation