From 24dd764dac554fb9ee5472e1ec4939aa96125d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Wed, 9 Mar 2022 14:22:45 +0100 Subject: [PATCH] [FIX] rename_models: bug in mail template query --- openupgradelib/openupgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index c0a99b1c..676acbd4 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -880,7 +880,7 @@ def rename_models(cr, model_spec): cr, 'email_template', 'model'): logged_query( cr, - 'UPDATE email_template SET model=%s' + 'UPDATE email_template SET model=%s ' 'where model=%s', (new, old), ) if is_module_installed(cr, 'mail'): @@ -898,7 +898,7 @@ def rename_models(cr, model_spec): if table_exists(cr, 'mail_template'): logged_query( cr, - 'UPDATE mail_template SET model=%s' + 'UPDATE mail_template SET model=%s ' 'where model=%s', (new, old), ) if table_exists(cr, 'mail_followers'):