[ADD] migration script pms mail workflow

This commit is contained in:
Darío Lodeiros
2022-09-15 19:43:15 +02:00
parent a8b4b6aa3e
commit 44bc7df37d
2 changed files with 16 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "PMS (Property Management System)",
"summary": "A property management system",
"version": "14.0.2.35.0",
"version": "14.0.2.35.1",
"development_status": "Beta",
"category": "Generic Modules/Property Management System",
"website": "https://github.com/OCA/pms",

View File

@@ -0,0 +1,15 @@
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.logged_query(
env.cr,
"""
UPDATE pms_reservation
SET to_send_confirmation_mail = to_send_mail,
to_send_cancelation_mail = False,
to_send_exit_mail = False,
to_send_modification_mail = False;
""",
)