[FIX] mail: disable fetchmail servers on neutralize

When neutralizing the database we should disactivate all
fetchmail servers to prevent data loss (ex. when using POP)

opw-2758998

closes odoo/odoo#133199

X-original-commit: f1871890b79ee45c3addf467e544a06e534d1e9e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Xavier Alt (xal) <xal@odoo.com>
This commit is contained in:
Xavier ALT
2023-08-25 18:50:02 +02:00
parent 4394618323
commit aa1b4e80e7
+3
View File
@@ -1,3 +1,6 @@
-- deactivate mail template
UPDATE mail_template
SET mail_server_id = NULL;
-- deactivate fetchmail server
UPDATE fetchmail_server
SET active = false;