Skip to content

Commit bf0d65e

Browse files
committed
Merge PR #2372 into 13.0
Signed-off-by pedrobaeza
2 parents ace5606 + 6968020 commit bf0d65e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/utm/migrations/13.0.1.0/pre-migration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33
from openupgradelib import openupgrade
4+
from odoo.tools import create_model_table
45

56
_model_renames = [
67
('mail.mass_mailing.stage', 'utm.stage'),
@@ -63,3 +64,5 @@ def migrate(env, version):
6364
],
6465
False,
6566
)
67+
else:
68+
create_model_table(cr, "utm_stage", "Campaign Stage")

0 commit comments

Comments
 (0)