diff --git a/templates/post_restore-odootest.sql.j2 b/templates/post_restore-odootest.sql.j2 index cd2fa494f7ab3db7e95ee1c10ad66611c347e78a..1d46b55d78166573afff6142ce49e22a908114ef 100644 --- a/templates/post_restore-odootest.sql.j2 +++ b/templates/post_restore-odootest.sql.j2 @@ -4,8 +4,11 @@ UPDATE ir_mail_server -- deactivate crons UPDATE ir_cron - SET active = false - WHERE id NOT IN ( + SET active = false; + +UPDATE ir_cron + SET active = true + WHERE id IN ( SELECT res_id FROM ir_model_data WHERE model = 'ir.cron'