[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:
@@ -1,3 +1,6 @@
|
||||
-- deactivate mail template
|
||||
UPDATE mail_template
|
||||
SET mail_server_id = NULL;
|
||||
-- deactivate fetchmail server
|
||||
UPDATE fetchmail_server
|
||||
SET active = false;
|
||||
|
||||
Reference in New Issue
Block a user