Skip to content

Commit

Permalink
new: migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
lcbautista committed Aug 8, 2024
1 parent 713b8da commit edc9948
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions migrations/5.0.24.9.0/post-0003_update_preview_email_view.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
from oopgrade.oopgrade import load_data_records


def up(cursor, installed_version):
if not installed_version:
return

load_data_records(cursor, 'poweremail', 'wizard/wizard_poweremail_preview.xml', ['poweremail_preview_form'])


def down(cursor, installed_version):
pass


migrate = up
2 changes: 1 addition & 1 deletion wizard/wizard_poweremail_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_save_to_draft(self, cursor, uid, context=None):
'cc': fields.char('CC', size=250, readonly=True),
'bcc': fields.char('BCC', size=250, readonly=True),
'subject': fields.char('Subject', size=200, readonly=True),
'lang': fields.char('Language', size=6, readonnly=True),
'lang': fields.char('Language', size=6, readonly=True),
'body_text': fields.text('Body', readonly=True),
'body_html': fields.text('Body', readonly=True),
'report': fields.char('Report Name', size=100, readonly=True),
Expand Down

0 comments on commit edc9948

Please sign in to comment.