[FIX] base: neutralize keep only autovacuum_job
The root of the issue: The external identifiers are not guaranteed to be unique on their `name` alone, the unique constraint is on the `name` and on the `module` fields. Before this commit: If a user or third party app were for example to create an external identifier "project.autovacuum_job" and point it to an `ir.cron` record, then that `ir.cron` would also be kept activated, which could cause major issue if it makes calls to external systems, sends mail, etc... After this commit: All the crons are deactivated by the neutralisation, except for the autovacuum closes odoo/odoo#152535 X-original-commit: 0cc89a026d05b37714864e7ebb695e77ef2d1e7d Signed-off-by: Jérémy Kersten <jke@odoo.com> Signed-off-by: Alexandre Moens (mao) <mao@odoo.com>
This commit is contained in:
@@ -14,6 +14,7 @@ UPDATE ir_cron
|
||||
FROM ir_model_data
|
||||
WHERE model = 'ir.cron'
|
||||
AND name = 'autovacuum_job'
|
||||
AND module = 'base'
|
||||
);
|
||||
|
||||
-- neutralization flag for the database
|
||||
|
||||
Reference in New Issue
Block a user