Skip to content

Commit dd28056

Browse files
author
Pedro M. Baeza
authored
Merge pull request OCA#1120 from Tecnativa/17.0-ou_add-website_crm_quick_answer
[17.0][OU-ADD] website_crm_quick_answer: Migration scripts
2 parents bab6775 + 3c8168e commit dd28056

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2025 Tecnativa - Pedro M. Baeza
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from openupgradelib import openupgrade
5+
6+
7+
@openupgrade.migrate()
8+
def migrate(env, version):
9+
# Rename the auto-generated XML-ID for the old ir.actions.server record, which is
10+
# now explicit in data
11+
mod = "website_crm_quick_answer"
12+
openupgrade.rename_xmlids(
13+
env.cr,
14+
[(f"{mod}.automated_action_ir_actions_server", f"{mod}.send_email_action")],
15+
)

0 commit comments

Comments
 (0)