mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] migration script pms mail workflow
This commit is contained in:
@@ -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",
|
||||
|
||||
15
pms/migrations/14.0.2.35.1/post-migration.py
Normal file
15
pms/migrations/14.0.2.35.1/post-migration.py
Normal 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;
|
||||
""",
|
||||
)
|
||||
Reference in New Issue
Block a user