Skip to Content
Home Communication HTD SMS Integration
HTD SMS Integration

HTD SMS Integration

Send SMS via HTD provider

v19.0.1.0.0 Eng. Ahmad Hasan / AlShayeb Partners Communication

HTD Palestinian SMS gateway integration

Overview

Adds HTD (Palestinian SMS provider) as an SMS provider in Odoo with configurable API credentials for sending SMS to partners and customers.

Key Features

  • HTD SMS provider integration via Company settings
  • SMS button in chatter for all models with mail.thread
  • Send SMS button on Contact form
  • Pre-configured SMS templates for Sales, Purchases, Invoices, and Payments
  • HTD SMS ID (API authentication)
  • HTD SMS Sender (name/number displayed on SMS)
  • HTD SMS Endpoint (optional, uses default if empty)
  • From any record with chatter: Click "SMS" button in toolbar
  • From Contact form: Click "Send SMS" button
  • SMS messages are logged in the chatter for tracking

Extends Existing Models

res.company

Adds 2 fields:

SMS Provider (Selection) HTD SMS ID/Sender/Endpoint/Username/Password (Char)

res.partner

Adds actions: action_open_send_sms_wizard

Documentation

.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg

:target: https://www.gnu.org/licenses/lgpl-3.0.html

:alt: License: LGPL-3

HTD SMS Integration

Send SMS via HTD provider directly from Odoo 19.

This module follows Odoo's standard SMS provider architecture (like ``sms_twilio``),

adding HTD as a selectable SMS provider option.

Features

  • HTD SMS provider integration via Company settings
  • SMS button in chatter for all models with mail.thread
  • Send SMS button on Contact form
  • Pre-configured SMS templates for Sales, Purchases, Invoices, and Payments
  • Proper fallback to Odoo IAP SMS when HTD is not selected

Configuration

1. Go to Settings > Companies > Your Company

2. Navigate to the "HTD SMS Settings" section

3. Set "SMS Provider" to "Send via HTD"

4. Fill in your HTD credentials:

  • **HTD SMS ID**: API ID provided by HTD for authentication
  • **HTD SMS Sender**: Name or number displayed on SMS
  • **HTD SMS Endpoint**: (Optional) Custom endpoint URL

Usage

  • From any record with chatter: Click "SMS" button in toolbar
  • From Contact form: Click "Send SMS" button
  • SMS messages are logged in the chatter for tracking

Technical

This module extends ``SmsApiBase`` (not monkey-patching) and overrides

``_get_sms_api_class()`` on ``res.company`` to return ``SmsApiHTD`` when

the HTD provider is selected.

Author

  • Eng. Ahmad Hasan / AlShayeb Partners

License

This module is licensed under LGPL-3.

Technical Details

Technical Name ah_sms_htd
Version 19.0.1.0.0
License LGPL-3

Security

Standard messaging access

Dependencies

base mail contacts sale_management account purchase sms_twilio