diff options
| author | Aurélien Warnon <awa@odoo.com> | 2021-03-09 07:44:03 +0000 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2021-03-09 07:44:03 +0000 |
| commit | 98786b70d92d8a3bdfb961945f475b64899cc2e0 (patch) | |
| tree | 3721e5c0b4169d0881baf0ca8666ae257bbeca9c /addons/web/static/src | |
| parent | bca282b241051cab917816106b8576e54fe1edc6 (diff) | |
[FIX] mass_mailing: fix display condition of mass.mailing alert ribbon
Oversight of 20b34ae867e927eba2951bd81d73661d21084d17
This commit fixes the display condition of the small alert block on top of the
mass.mailing form view.
The condition was not working because it would hide the alert if:
('failed', '=', 0)
OR
('state', '!=', 'in_queue')
AND
('sent', '=', 0)
AND
('scheduled', '=', 0)
Instead, we want to hide it if:
('failed', '=', 0)
AND
('state', '!=', 'in_queue')
AND
('sent', '=', 0)
AND
('scheduled', '=', 0)
This would for example prevent showing that the mailing is "scheduled" or that
it has successfully been sent with various mailing statistics.
Task-2457227
closes odoo/odoo#67505
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
