From a382d858bae3049211f122429d6cad207e5eb182 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 24 Jan 2017 12:01:23 +0100 Subject: [PATCH] [FIX][mass_mailing_custom_unsubscribe] Reasons noupdate After this fix, when you update the addon, you will not lose your customized reasons. --- .../__openerp__.py | 4 +- .../data/mail.unsubscription.reason.csv | 5 --- .../data/mail_unsubscription_reason.xml | 41 +++++++++++++++++++ 3 files changed, 43 insertions(+), 7 deletions(-) delete mode 100644 mass_mailing_custom_unsubscribe/data/mail.unsubscription.reason.csv create mode 100644 mass_mailing_custom_unsubscribe/data/mail_unsubscription_reason.xml diff --git a/mass_mailing_custom_unsubscribe/__openerp__.py b/mass_mailing_custom_unsubscribe/__openerp__.py index de48036b..f1c0c587 100644 --- a/mass_mailing_custom_unsubscribe/__openerp__.py +++ b/mass_mailing_custom_unsubscribe/__openerp__.py @@ -23,7 +23,7 @@ { 'name': "Customizable unsubscription process on mass mailing emails", 'category': 'Marketing', - 'version': '8.0.2.0.0', + 'version': '8.0.2.1.0', 'depends': [ 'mass_mailing', 'website_crm', @@ -31,7 +31,7 @@ 'data': [ 'security/ir.model.access.csv', 'data/install_salt.xml', - 'data/mail.unsubscription.reason.csv', + 'data/mail_unsubscription_reason.xml', 'views/assets.xml', 'views/mail_unsubscription_reason_view.xml', 'views/mail_mass_mailing_list_view.xml', diff --git a/mass_mailing_custom_unsubscribe/data/mail.unsubscription.reason.csv b/mass_mailing_custom_unsubscribe/data/mail.unsubscription.reason.csv deleted file mode 100644 index 061d1587..00000000 --- a/mass_mailing_custom_unsubscribe/data/mail.unsubscription.reason.csv +++ /dev/null @@ -1,5 +0,0 @@ -"id","name","sequence","details_required" -"reason_not_interested","I'm not interested",10,"False" -"reason_not_requested","I did not request this",20,"False" -"reason_too_many","I get too many emails",30,"False" -"reason_other","Other reason",100,"True" diff --git a/mass_mailing_custom_unsubscribe/data/mail_unsubscription_reason.xml b/mass_mailing_custom_unsubscribe/data/mail_unsubscription_reason.xml new file mode 100644 index 00000000..4335f9b7 --- /dev/null +++ b/mass_mailing_custom_unsubscribe/data/mail_unsubscription_reason.xml @@ -0,0 +1,41 @@ + + + + + + + + I'm not interested + 10 + + + + + I did not request this + 20 + + + + + I get too many emails + 30 + + + + + Other reason + 100 + + + + +