diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-05-18 20:10:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 20:10:59 +0200 |
| commit | d9912d76577976a2b692316fe3984f465595a1e6 (patch) | |
| tree | 3ab659847c0b5fb600aef48148c0bb1bcd880098 /addons/web/static/src/js/views/graph/graph_controller.js | |
| parent | 8fc0a06c406d08a57a9783e08d1c5b91b17bde65 (diff) | |
| parent | 5a3fc4684741d0c537d32da1533ec7275915ab1c (diff) | |
[FW][MERGE][FIX] mass_mailing: correctly update mailing statistics replied status
PURPOSE
Fix trace state management in mass mailing: correctly compute state
and better support incoming email headers.
SPECIFICATIONS: STATE
Trace status is a computed field based on other fields. Those store the
datetime at which a specific action has been performed: opened, replied,
bounced, ... depending on those fields status of trace is computed.
Replied / Bounced / Opened states should be computed prior to Sent state.
Indeed Sent is the default state once the email is sent. Then replied,
bounced and opened are states that happen after sending the email. It
is therefore necessary to re-order the state computation to correctly compute
the statistic state.
SPECIFICATIONS:GATEWAY
Consider an email going through the mail gateway. Its headers References
and In-Reply-To are used in mail gateway to find if it is an answer to an
existing discussion thread.
Notably in mass mailing it is used to set mailing traces (called statistics
in 11.0) as opened and replied. However currently only the References header
is used.
In this commit we now use References or In-Reply-To like what is done in
mail gateway.
LINKS
Task ID 2257717
PR #51247
closes odoo/odoo#51490
Forward-port-of: odoo/odoo#51445
Forward-port-of: odoo/odoo#51247
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_controller.js')
0 files changed, 0 insertions, 0 deletions
