OdooWiki OCA HUB

No automatic deletion of SMS

sms_no_automatic_delete folder_open OCA/connector-telephony open_in_new
Uncategorised License: AGPL-3

This module allows to save sent sms and to delete them after a delay (in days). In addition, the sms state is update as "sent" when they are sent and saved.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you control how long sent SMS messages are kept before being permanently removed, instead of Odoo deleting them automatically. You set the retention period in days from the Settings screen.

This module changes how Odoo handles old SMS messages. Normally, sent SMS records can be removed automatically; with this module installed, you decide how long they are kept.

Where it appears: - In Settings, under the Contacts section, a new field "SMS Purge Days" is added. Its default value is 90 days.

What it does: - The value you enter is stored as a system setting and is used by a scheduled cleanup job. - The cleanup job deletes SMS records that are marked for deletion and whose last modification date is older than the number of days you configured. - If no value is set, 90 days is used.

What it touches: - It extends the SMS model sms.sms and the settings model res.config.settings. - It also maps some SMS delivery statuses (processing, success, sent, delivered) to the internal "sent" state.

Note: the code shown only covers the retention setting and the cleanup job; it does not show any other screens, buttons or reports.

Depends on

sms
Models and fields (1)
  • res.config.settings · extends an existing modelsms_purge_days (SMS Purge Days)

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/connector-telephony.

terminal Installation and usage

OCA documentation · Odoo 18.0

To delete sent SMS, the autovacuum _gc_device process is used to remove records that exceed the maximum retention period (default: 90 days) daily.

To update the SMS Purge Days setting, follow these steps:

  • Go to Settings \> General Settings \> Contacts \> SMS Purge Days.
  • You update the maximum number of days an SMS will be retained.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.