Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---Fields in module 'email_template'---

email_template / email.template / body_html (text) : type is now 'html' ('text')
# Nothing to do : the database column type did not change

email_template / email.template / email_recipients (char) : DEL
email_template / email.template / partner_to (char) : NEW
# Field renamed

email_template / email.template / use_default_to (boolean) : NEW
email_template / ir.actions.server / template_id (many2one) : NEW relation: email.template
# New columns : ok

---XML records in module 'email_template'---
NEW email.template: email_template.email_template_partner
NEW ir.actions.act_window: base.action_partner_mass_mail
NEW ir.ui.view: email_template.view_server_action_form_template
# New : ok
32 changes: 32 additions & 0 deletions addons/email_template/migrations/8.0.1.1/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This migration script copyright (C) 2014 Akretion
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from openupgrade import openupgrade

column_renames = {
'email_template': [
('email_recipients', 'partner_to'),
]
}

@openupgrade.migrate()
def migrate(cr, version):
openupgrade.rename_columns(cr, column_renames)
2 changes: 1 addition & 1 deletion openerp/openupgrade/doc/source/modules70-80.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Status :
+-----------------------------------+-----------------------------------+
|edi | |
+-----------------------------------+-----------------------------------+
|email_template | |
|email_template | done |
+-----------------------------------+-----------------------------------+
|event | |
+-----------------------------------+-----------------------------------+
Expand Down