Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Adding two approvals before a Dolibarr mass mailing can be sent

Описание и применение

В Dolibarr массовые рассылки требуют двух одобрений: сообщения и списка получателей, чтобы гарантировать, что изменения в любом из компонентов требуют повторного одобрения перед отправкой.

Задача

Dolibarr mass mailings currently require only one approval stamp, combining message and recipient list validation, which can lead to sending mailings with unapproved content or recipient lists.

Результат

Implementing dual approvals separates message and recipient list validation, ensuring that changes to either component require re‑approval before sending. This reduces risk of sending unintended content or incorrect recipient lists.

Рабочий процесс

  • 1. User edits message subject/body or recipient list.
  • 2. User clicks "Validate" on the message card; system writes date_valid and fk_user_valid. If date_appro already set, status becomes validated.
  • 3. User clicks "Validate" on the recipient list; system writes date_appro and fk_user_appro. If date_valid already set, status becomes validated.
  • 4. When both stamps exist, "Send" button appears and mailing can be sent.
  • 5. If a mailing is already validated, a migration script copies date_valid/date_appro and fk_user_valid/fk_user_appro to keep it sendable.

Доказательства

One stamp covers two different facts: the text is ready, and the list of people is ready. They are not the same fact.

Источник

Validating the message alone leaves the mailing as a draft. Send stays hidden.

Источник

For installations that already have validated mailings, the migration copies the old single stamp onto the recipient columns, so those mailings remain sendable.

Источник

  • Дата записи: 2026-10-19T10:56:00.370Z