Skip to Content
Catalog / COM · Communication / HTD SMS Integration
HTD SMS Integration
ah_sms_htd

HTD SMS Integration

Send SMS to customers and vendors through your HTD gateway, straight from Odoo

v19.0.1.0.0 Eng. Ahmad Hasan / AlShayeb Partners Communication

Inherits company to add an 'htd' option to the sms_provider selection plus HTD credential fields, and overrides _get_sms_api_class() to return the SmsApiHTD class. SmsApiHTD subclasses Odoo's SmsApiBase (no monkey-patching) and implements _send_sms_batch() against the HTD JSON endpoint using a pooled requests.Session. sms sms _split_by_api() is overridden to dispatch HTD-company messages to the HTD API and delegate the rest via super(). chatter _thread_to_store() exposes a canSendHTDSms flag, and an OWL patch on the Chatter component adds the SMS button that opens the standard sms composer. The composer's default_get() auto-picks the first sms template matching the active model. Depends on sms_twilio for the sms_provider selection field.

Overview

Odoo's built-in SMS only talks to its paid IAP service or Twilio, which leaves businesses on the HTD network without a way to reach customers by text. This module adds HTD as a first-class SMS provider you select per company and configure with your own credentials, then plugs it into Odoo's standard SMS engine so every send is logged and tracked automatically. Staff can text any contact from the chatter on any document or directly from the Contact form, and a library of ready-made templates covers order, invoice, bill, and payment notifications out of the box.

Key Features

  • Adds 'Send via HTD' as a selectable SMS provider in Company settings, sitting alongside Odoo IAP and Twilio.
  • Routes only HTD-configured companies through the HTD gateway and leaves everything else on Odoo's default SMS provider.
  • Configures your HTD account per company with SMS ID, sender name/number, and an optional custom endpoint URL.
  • Adds an 'SMS' button to the chatter of every document that supports messaging (sales orders, invoices, contacts, and more).
  • Adds a 'Send SMS' button on the Contact form for one-click texting of any partner.
  • Ships 11 ready-to-use SMS templates for sales orders, purchase orders, customer invoices, vendor bills, credit notes, and payments.
  • Auto-selects the matching SMS template based on the record you are texting from, with portal links and amounts pre-filled.
  • Logs every SMS in the document chatter for a full communication trail and delivery tracking.
  • Returns clear, user-friendly error messages for misconfiguration, bad credentials, or connection failures.
  • Includes Arabic translation and respects each recipient's preferred language.

Technical Details

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

Security

The module adds no new security groups or access rules of its own. It reuses Odoo's existing SMS and messaging permissions: a user can send an HTD SMS only if they already have create access on the SMS composer, and HTD credentials are read with elevated rights so configuration stays under the standard company-settings (administrator) controls.

Dependencies

base mail contacts sale_management account purchase sms_twilio